diff --git a/src/hb-blob.cc b/src/hb-blob.cc index d5ee070ee..f78539c99 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -526,7 +526,7 @@ _hb_mapped_file_destroy (void *file_) #ifdef _PATH_RSRCFORKSPEC static int -_open_resource_fork(const char *file_name, hb_mapped_file_t *file) +_open_resource_fork (const char *file_name, hb_mapped_file_t *file) { size_t name_len = strlen (file_name); size_t len = name_len + sizeof (_PATH_RSRCFORKSPEC); @@ -536,7 +536,7 @@ _open_resource_fork(const char *file_name, hb_mapped_file_t *file) strncpy (rsrc_name, file_name, name_len); strncpy (rsrc_name + name_len, _PATH_RSRCFORKSPEC, - sizeof (_PATH_RSRCFORKSPEC) - 1); + sizeof (_PATH_RSRCFORKSPEC) - 1); int fd = open (rsrc_name, O_RDONLY | O_BINARY, 0); free (rsrc_name); diff --git a/src/hb-ot-color-cbdt-table.hh b/src/hb-ot-color-cbdt-table.hh index cd33651dd..2500fbe3f 100644 --- a/src/hb-ot-color-cbdt-table.hh +++ b/src/hb-ot-color-cbdt-table.hh @@ -573,15 +573,15 @@ struct IndexSubtableArray { if (unlikely (!lookup[start].second->add_new_record (c, bitmap_size_context, &lookup, this, &start, &records))) { - // Discard any leftover pushes to the serializer from successful records. - for (unsigned int i = 0; i < records.length; i++) - c->serializer->pop_discard (); - return_trace (false); + // Discard any leftover pushes to the serializer from successful records. + for (unsigned int i = 0; i < records.length; i++) + c->serializer->pop_discard (); + return_trace (false); } } - // Workaround to ensure offset ordering is from least to greatest when - // resolving links. + /* Workaround to ensure offset ordering is from least to greatest when + * resolving links. */ hb_vector_t objidxs; for (unsigned int i = 0; i < records.length; i++) objidxs.push (c->serializer->pop_pack ());