summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-08 16:42:46 +0000
committerMichael Stahl <mstahl@redhat.com>2018-01-09 15:08:27 +0100
commit7f9a8481f76fc45ff682b654484c1ac311820dfe (patch)
treecd71e138b61f1ae592cfec36efdc1c42d756ff73 /vcl
parentResolves: tdf#114766 gtk3 solar mutex assert (diff)
downloadcore-7f9a8481f76fc45ff682b654484c1ac311820dfe.tar.gz
core-7f9a8481f76fc45ff682b654484c1ac311820dfe.zip
tdf#114704 use of float as intermediate causes out by one on large offsets
table offset integer value of 21281769 is correctly read, but on cast to float it is represented as 21281768 and we're off by one when cast back to integer later Change-Id: I5694e14d72c04493ba15cc77485a734498a45468 Reviewed-on: https://gerrit.libreoffice.org/47609 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/fontsubset/cff.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index f7d3cdd3d8ca..3eabfc5faf2e 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -31,7 +31,7 @@ typedef long long S64;
typedef sal_Int32 GlyphWidth;
-typedef float RealType;
+typedef double RealType;
typedef RealType ValType;
#include <vector>