diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 75a0f568d..294889a83 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -535,6 +535,20 @@ struct Supplier template struct BEInt; +template +struct BEInt +{ + public: + inline void set (Type V) + { + v = V; + } + inline operator Type (void) const + { + return v; + } + private: uint8_t v; +}; template struct BEInt { @@ -618,7 +632,7 @@ struct IntType DEFINE_SIZE_STATIC (Size); }; -typedef uint8_t BYTE; /* 8-bit unsigned integer. */ +typedef IntType BYTE; /* 8-bit unsigned integer. */ typedef IntType USHORT; /* 16-bit unsigned integer. */ typedef IntType SHORT; /* 16-bit signed integer. */ typedef IntType ULONG; /* 32-bit unsigned integer. */