From d8c69137655fbe9678d1dfef0eb3c4172f8bbfc0 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Fri, 30 Nov 2018 18:58:14 -0800 Subject: [PATCH] undo 0u --- src/hb-cff2-interp-cs.hh | 2 +- src/hb-ot-cff1-table.hh | 4 ++-- src/hb-ot-vorg-table.hh | 2 +- src/hb-subset-cff-common.hh | 4 ++-- src/hb-subset-cff1.cc | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/hb-cff2-interp-cs.hh b/src/hb-cff2-interp-cs.hh index 64e2732..3bc2720 100644 --- a/src/hb-cff2-interp-cs.hh +++ b/src/hb-cff2-interp-cs.hh @@ -136,7 +136,7 @@ struct CFF2CSInterpEnv : CSInterpEnv scalars.resize (region_count); varStore->varStore.get_scalars (get_ivs (), (int *)coords, num_coords, - &scalars[0u], region_count); + &scalars[0], region_count); } seen_blend = true; } diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index 2264e69..902d972 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -1028,7 +1028,7 @@ struct cff1 { fini (); return; } { /* parse top dict */ - const ByteStr topDictStr = (*topDictIndex)[0u]; + const ByteStr topDictStr = (*topDictIndex)[0]; if (unlikely (!topDictStr.sanitize (&sc))) { fini (); return; } CFF1TopDict_Interpreter top_interp; top_interp.env.init (topDictStr); @@ -1112,7 +1112,7 @@ struct cff1 else /* non-CID */ { CFF1TopDictValues *font = &topDict; - PRIVDICTVAL *priv = &privateDicts[0u]; + PRIVDICTVAL *priv = &privateDicts[0]; const ByteStr privDictStr (StructAtOffset (cff, font->privateDictInfo.offset), font->privateDictInfo.size); if (unlikely (!privDictStr.sanitize (&sc))) { fini (); return; } diff --git a/src/hb-ot-vorg-table.hh b/src/hb-ot-vorg-table.hh index effb17d..06f76a1 100644 --- a/src/hb-ot-vorg-table.hh +++ b/src/hb-ot-vorg-table.hh @@ -93,7 +93,7 @@ struct VORG unsigned int size = VertOriginMetric::static_size * subset_metrics.len; VertOriginMetric *metrics = c.allocate_size (size); if (likely (metrics != nullptr)) - memcpy (metrics, &subset_metrics[0u], size); + memcpy (metrics, &subset_metrics[0], size); else success = false; } diff --git a/src/hb-subset-cff-common.hh b/src/hb-subset-cff-common.hh index 4113423..d601f27 100644 --- a/src/hb-subset-cff-common.hh +++ b/src/hb-subset-cff-common.hh @@ -120,7 +120,7 @@ struct StrEncoder set_error (); return; } - memcpy (&buff[offset], &str.str[0u], str.len); + memcpy (&buff[offset], &str.str[0], str.len); } inline bool is_error (void) const { return error; } @@ -226,7 +226,7 @@ struct CFFFontDict_OpSerializer : OpSerializer { HBUINT8 *d = c->allocate_size (opstr.str.len); if (unlikely (d == nullptr)) return_trace (false); - memcpy (d, &opstr.str.str[0u], opstr.str.len); + memcpy (d, &opstr.str.str[0], opstr.str.len); } return_trace (true); } diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index 9d34c34..2ffbdc9 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc @@ -599,7 +599,7 @@ struct cff_subset_plan { hb_subset_plan_t *plan) { /* make sure notdef is first */ - if ((plan->glyphs.len == 0) || (plan->glyphs[0u] != 0)) return false; + if ((plan->glyphs.len == 0) || (plan->glyphs[0] != 0)) return false; final_size = 0; num_glyphs = plan->glyphs.len; @@ -813,7 +813,7 @@ struct cff_subset_plan { } if (!acc.is_CID ()) - offsets.privateDictInfo = fontdicts_mod[0u].privateDictInfo; + offsets.privateDictInfo = fontdicts_mod[0].privateDictInfo; return ((subset_charstrings.len == plan->glyphs.len) && (fontdicts_mod.len == subset_fdcount)); -- 2.7.4