Fix FixedVersion::to_int()

Ouch.  Had broken it in 9a13ed453e

Fixes https://github.com/behdad/harfbuzz/issues/238
Will add test soon.
This commit is contained in:
Behdad Esfahbod 2016-04-04 14:34:25 -07:00
parent 0251b0cc5c
commit 6dd80faf0d
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ struct CheckSum : ULONG
template <typename FixedType=USHORT>
struct FixedVersion
{
inline uint32_t to_int (void) const { return (major << sizeof(FixedType)) + minor; }
inline uint32_t to_int (void) const { return (major << (sizeof(FixedType) * 8)) + minor; }
inline bool sanitize (hb_sanitize_context_t *c) const
{