diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 8c4271b68..478bb60ac 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -53,7 +53,7 @@ namespace OT { */ /* Integer types in big-endian order and no alignment requirement */ -template +template struct IntType { typedef Type type; @@ -107,12 +107,12 @@ struct IntType DEFINE_SIZE_STATIC (Size); }; -typedef IntType HBUINT8; /* 8-bit unsigned integer. */ -typedef IntType HBINT8; /* 8-bit signed integer. */ -typedef IntType HBUINT16; /* 16-bit unsigned integer. */ -typedef IntType HBINT16; /* 16-bit signed integer. */ -typedef IntType HBUINT32; /* 32-bit unsigned integer. */ -typedef IntType HBINT32; /* 32-bit signed integer. */ +typedef IntType HBUINT8; /* 8-bit unsigned integer. */ +typedef IntType HBINT8; /* 8-bit signed integer. */ +typedef IntType HBUINT16; /* 16-bit unsigned integer. */ +typedef IntType HBINT16; /* 16-bit signed integer. */ +typedef IntType HBUINT32; /* 32-bit unsigned integer. */ +typedef IntType HBINT32; /* 32-bit signed integer. */ /* Note: we cannot defined a signed HBINT24 because there's no corresponding C type. * Works for unsigned, but not signed, since we rely on compiler for sign-extension. */ typedef IntType HBUINT24; /* 24-bit unsigned integer. */ diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 7238fb0d8..fe29bdf96 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -524,7 +524,7 @@ struct hb_serialize_context_t template void assign_offset (const object_t* parent, const object_t::link_t &link, unsigned offset) { - auto &off = * ((BEInt *) (parent->head + link.position)); + auto &off = * ((BEInt *) (parent->head + link.position)); assert (0 == off); check_assign (off, offset); } diff --git a/src/hb.hh b/src/hb.hh index f569fbfc7..fe6ffc873 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -464,10 +464,10 @@ static inline constexpr uint32_t hb_uint32_swap (uint32_t v) { return (hb_uint16_swap (v) << 16) | hb_uint16_swap (v >> 16); } /* - * Big-endian integers. Here because fundamental. + * Big-endian integers. */ -template struct BEInt; +template struct BEInt; template struct BEInt