commit | 858b627984c50e94bc71b9530c340a8fff59d330 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 10 13:18:32 2019 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 10 13:18:32 2019 -0600 |
tree | b96d4e2588d757467ab8f6ab1c6535e9decf68a6 | |
parent | b84ceb2fcf7a71fe03f499dd0c4611254b561f1d [diff] [blame] |
[machinery] Remove CastR<>()
diff --git a/src/hb-open-file.hh b/src/hb-open-file.hh index cb1fdf1..23ca44d 100644 --- a/src/hb-open-file.hh +++ b/src/hb-open-file.hh
@@ -284,7 +284,7 @@ struct ResourceRecord { const OpenTypeFontFace & get_face (const void *data_base) const - { return CastR<OpenTypeFontFace> ((data_base+offset).arrayZ); } + { return * reinterpret_cast<const OpenTypeFontFace *> ((data_base+offset).arrayZ); } bool sanitize (hb_sanitize_context_t *c, const void *data_base) const