From 20245f0000a0f04f2ba172b51ce69ee7ebb256aa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Dec 2018 10:27:37 -0800 Subject: [PATCH] Fix likely check Ouch! --- src/hb-cff-interp-dict-common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-cff-interp-dict-common.hh b/src/hb-cff-interp-dict-common.hh index 63ca685ec..f35342c99 100644 --- a/src/hb-cff-interp-dict-common.hh +++ b/src/hb-cff-interp-dict-common.hh @@ -208,7 +208,7 @@ struct DictOpSet : OpSet break; case FRAC_PART: - if (likely ((frac_part <= MAX_FRACT / 10))) + if (likely (frac_part <= MAX_FRACT / 10)) { frac_part = (frac_part * 10) + (unsigned)d; frac_count++; @@ -216,7 +216,7 @@ struct DictOpSet : OpSet break; case EXP_PART: - if (likely (exp_part * 10) + d <= MAX_EXP) + if (likely (exp_part * 10 + d <= MAX_EXP)) { exp_part = (exp_part * 10) + d; }