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:
f9cee08
)
fix signed/unsigned comparison
author
Michiharu Ariza
<ariza@adobe.com>
Wed, 5 Dec 2018 08:26:03 +0000
(
00:26
-0800)
committer
Michiharu Ariza
<ariza@adobe.com>
Wed, 5 Dec 2018 08:26:03 +0000
(
00:26
-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
d5376e8
..
2c7a971
100644
(file)
--- a/
src/hb-cff-interp-dict-common.hh
+++ b/
src/hb-cff-interp-dict-common.hh
@@
-108,7
+108,7
@@
struct DictOpSet : OpSet<Number>
{
bool neg = false;
double int_part = 0;
- int64_t frac_part = 0;
+
u
int64_t frac_part = 0;
uint32_t frac_count = 0;
bool exp_neg = false;
uint32_t exp_part = 0;
@@
-206,7
+206,7
@@
struct DictOpSet : OpSet<Number>
case FRAC_PART:
if (likely ((frac_part <= MAX_FRACT / 10)))
{
- frac_part = (frac_part * 10) + d;
+ frac_part = (frac_part * 10) +
(unsigned)
d;
frac_count++;
}
break;