mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
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:
1 parent
0251b0cc5c
commit
6dd80faf0d
1 file changed
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user