[subset] Fix cast-align issue

Fixes https://github.com/harfbuzz/harfbuzz/issues/4316
This commit is contained in:
Behdad Esfahbod 2023-07-09 12:32:49 -06:00
parent fc24ffbfb3
commit db3aeeb547
2 changed files with 2 additions and 2 deletions

View file

@ -266,7 +266,7 @@ struct hb_serialize_context_t
propagate_error (std::forward<Ts> (os)...); }
/* To be called around main operation. */
template <typename Type>
template <typename Type=char>
__attribute__((returns_nonnull))
Type *start_serialize ()
{

View file

@ -273,7 +273,7 @@ _try_subset (const TableType *table,
hb_vector_t<char>* buf,
hb_subset_context_t* c /* OUT */)
{
c->serializer->start_serialize<TableType> ();
c->serializer->start_serialize ();
if (c->serializer->in_error ()) return false;
bool needed = table->subset (c);