Skip to content

Commit

Permalink
Fix FixedVersion::to_int()
Browse files Browse the repository at this point in the history
Ouch.  Had broken it in 9a13ed4

Fixes #238
Will add test soon.
  • Loading branch information
behdad committed Apr 4, 2016
1 parent 0251b0c commit 6dd80fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hb-open-type-private.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 6dd80fa

Please sign in to comment.