[graph] Fix warning

Fixes https://github.com/harfbuzz/harfbuzz/issues/3766
This commit is contained in:
Behdad Esfahbod 2022-07-30 12:09:45 -06:00
parent fc9e6ae8d9
commit a0111e4fab
1 changed files with 1 additions and 2 deletions

View File

@ -213,8 +213,7 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3<SmallType
unsigned max_size) const
{
char* buffer = (char*) hb_calloc (1, max_size);
hb_serialize_context_t serializer = hb_serialize_context_t (buffer,
max_size);
hb_serialize_context_t serializer (buffer, max_size);
Coverage_serialize (&serializer, glyphs);
serializer.end_serialize ();
if (serializer.in_error ())