| Index: third_party/harfbuzz-ng/src/hb-open-type-private.hh
|
| diff --git a/third_party/harfbuzz-ng/src/hb-open-type-private.hh b/third_party/harfbuzz-ng/src/hb-open-type-private.hh
|
| index 6323da8e5731d610c40e6639e9b84a397e79d319..6a5200087f3d8f8ab5c5cc1989037b9d99567e0a 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-open-type-private.hh
|
| +++ b/third_party/harfbuzz-ng/src/hb-open-type-private.hh
|
| @@ -739,9 +739,10 @@ struct CheckSum : ULONG
|
| * Version Numbers
|
| */
|
|
|
| +template <typename FixedType=USHORT>
|
| struct FixedVersion
|
| {
|
| - inline uint32_t to_int (void) const { return (major << 16) + minor; }
|
| + inline uint32_t to_int (void) const { return (major << sizeof(FixedType)) + minor; }
|
|
|
| inline bool sanitize (hb_sanitize_context_t *c) const
|
| {
|
| @@ -749,10 +750,10 @@ struct FixedVersion
|
| return_trace (c->check_struct (this));
|
| }
|
|
|
| - USHORT major;
|
| - USHORT minor;
|
| + FixedType major;
|
| + FixedType minor;
|
| public:
|
| - DEFINE_SIZE_STATIC (4);
|
| + DEFINE_SIZE_STATIC (2 * sizeof(FixedType));
|
| };
|
|
|
|
|
|
|