summaryrefslogtreecommitdiffstats
path: root/gfx/skia/patches/archive/0014-Bug-765038-Fix-clang-build.patch
blob: 6cc74914d2e6f0b9ff813035b90465d06dbf5abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# HG changeset patch
# Parent 9ded7a9f94a863dfa1f3227d3013367f51b8b522
# User Nicholas Cameron <ncameron@mozilla.com>
Bug 765038; fix a Clang compilation bug in Skia; r=jwatt

diff --git a/gfx/skia/src/sfnt/SkOTTable_head.h b/gfx/skia/src/sfnt/SkOTTable_head.h
--- a/gfx/skia/src/sfnt/SkOTTable_head.h
+++ b/gfx/skia/src/sfnt/SkOTTable_head.h
@@ -109,18 +109,18 @@ struct SkOTTableHead {
         } raw;
     } macStyle;
     SK_OT_USHORT lowestRecPPEM;
     struct FontDirectionHint {
         SK_TYPED_ENUM(Value, SK_OT_SHORT,
             ((FullyMixedDirectionalGlyphs, SkTEndian_SwapBE16(0)))
             ((OnlyStronglyLTR, SkTEndian_SwapBE16(1)))
             ((StronglyLTR, SkTEndian_SwapBE16(2)))
-            ((OnlyStronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(-1))))
-            ((StronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(-2))))
+            ((OnlyStronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(static_cast<SK_OT_USHORT>(-1)))))
+            ((StronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(static_cast<SK_OT_USHORT>(-2)))))
             SK_SEQ_END,
         (value)SK_SEQ_END)
     } fontDirectionHint;
     struct IndexToLocFormat {
         SK_TYPED_ENUM(Value, SK_OT_SHORT,
             ((ShortOffsets, SkTEndian_SwapBE16(0)))
             ((LongOffsets, SkTEndian_SwapBE16(1)))
             SK_SEQ_END,