[subset] switch to hb_memcpy.
This commit is contained in:
parent
1e34852f07
commit
f9f0969cb6
|
@ -61,8 +61,7 @@ HB_INTERNAL bool postV2Tail::serialize (hb_serialize_context_t *c,
|
||||||
HBUINT8 *o = c->allocate_size<HBUINT8> (HBUINT8::static_size * (s.length + 1));
|
HBUINT8 *o = c->allocate_size<HBUINT8> (HBUINT8::static_size * (s.length + 1));
|
||||||
if (unlikely (!o)) return_trace (false);
|
if (unlikely (!o)) return_trace (false);
|
||||||
if (!c->check_assign (o[0], s.length, HB_SERIALIZE_ERROR_INT_OVERFLOW)) return_trace (false);
|
if (!c->check_assign (o[0], s.length, HB_SERIALIZE_ERROR_INT_OVERFLOW)) return_trace (false);
|
||||||
if (s.length)
|
hb_memcpy (o+1, s.arrayZ, HBUINT8::static_size * s.length);
|
||||||
memcpy (o+1, s.arrayZ, HBUINT8::static_size * s.length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
|
|
Loading…
Reference in New Issue