projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
620d1ef
)
fixed a bug with fractional part in a negative value
author
Michiharu Ariza
<ariza@adobe.com>
Wed, 5 Dec 2018 19:18:16 +0000
(11:18 -0800)
committer
Michiharu Ariza
<ariza@adobe.com>
Wed, 5 Dec 2018 19:18:16 +0000
(11:18 -0800)
src/hb-cff-interp-dict-common.hh
patch
|
blob
|
history
diff --git
a/src/hb-cff-interp-dict-common.hh
b/src/hb-cff-interp-dict-common.hh
index
005e15e
..
63ca685
100644
(file)
--- a/
src/hb-cff-interp-dict-common.hh
+++ b/
src/hb-cff-interp-dict-common.hh
@@
-146,7
+146,11
@@
struct DictOpSet : OpSet<Number>
case END:
value = (double)(neg? -int_part: int_part);
if (frac_count > 0)
- value += (frac_part / pow (10.0, (double)frac_count));
+ {
+ double frac = (frac_part / pow (10.0, (double)frac_count));
+ if (neg) frac = -frac;
+ value += frac;
+ }
if (unlikely (exp_overflow))
{
if (value == 0.0)