diff --git a/src/hb-face.cc b/src/hb-face.cc index 3a5045109..b0cc787d0 100644 --- a/src/hb-face.cc +++ b/src/hb-face.cc @@ -84,8 +84,7 @@ hb_face_count (hb_blob_t *blob) hb_sanitize_context_t c (blob); - const char *start = hb_blob_get_data (blob, nullptr); - auto *ot = reinterpret_cast (const_cast (start)); + auto *ot = blob->as (); if (unlikely (!ot->sanitize (&c))) return 0;