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;
}
{ 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);
else /* non-CID */
{
CFF1TopDictValues *font = &topDict;
- PRIVDICTVAL *priv = &privateDicts[0u];
+ PRIVDICTVAL *priv = &privateDicts[0];
const ByteStr privDictStr (StructAtOffset<UnsizedByteStr> (cff, font->privateDictInfo.offset), font->privateDictInfo.size);
if (unlikely (!privDictStr.sanitize (&sc))) { fini (); return; }
unsigned int size = VertOriginMetric::static_size * subset_metrics.len;
VertOriginMetric *metrics = c.allocate_size<VertOriginMetric> (size);
if (likely (metrics != nullptr))
- memcpy (metrics, &subset_metrics[0u], size);
+ memcpy (metrics, &subset_metrics[0], size);
else
success = false;
}
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; }
{
HBUINT8 *d = c->allocate_size<HBUINT8> (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);
}
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;
}
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));