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:
parent
0251b0cc5c
commit
6dd80faf0d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue