From 4912030dfba740c822e200d33cbb5c6dbbeaf79e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 3 Sep 2012 20:58:03 -0400 Subject: [PATCH] Minor --- src/hb-open-type-private.hh | 4 ++-- src/hb-ot-layout-gsub-table.hh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index ce268b2..11cb621 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -601,7 +601,7 @@ struct GenericOffsetTo : OffsetType inline Type& serialize (hb_serialize_context_t *c, void *base) { Type *t = (Type *) c->head; - this->set ((char *) t - (char *) base); + this->set ((char *) t - (char *) base); /* TODO(serialize) Overflow? */ return *t; } @@ -682,7 +682,7 @@ struct GenericArrayOf { TRACE_SERIALIZE (); if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false); - len.set (items_len); /* TODO may overflow */ + len.set (items_len); /* TODO(serialize) Overflow? */ if (unlikely (!c->extend (*this))) return TRACE_RETURN (false); unsigned int count = items_len; for (unsigned int i = 0; i < count; i++) diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index c50b206..f8d66b4 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -80,7 +80,7 @@ struct SingleSubstFormat1 TRACE_SERIALIZE (); if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false); if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false); - deltaGlyphID.set (delta); /* TODO overflow? */ + deltaGlyphID.set (delta); /* TODO(serilaize) overflow? */ return TRACE_RETURN (true); } @@ -211,7 +211,7 @@ struct SingleSubst unsigned int delta; if (num_glyphs) { format = 1; - /* TODO check for wrap-around */ + /* TODO(serialize) check for wrap-around */ delta = substitutes[0] - glyphs[0]; for (unsigned int i = 1; i < num_glyphs; i++) if (delta != substitutes[i] - glyphs[i]) { -- 2.7.4