aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sfnt
diff options
context:
space:
mode:
Diffstat (limited to 'src/sfnt')
-rw-r--r--src/sfnt/SkOTTable_glyf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sfnt/SkOTTable_glyf.h b/src/sfnt/SkOTTable_glyf.h
index 30c99f62fa..ac34d7b816 100644
--- a/src/sfnt/SkOTTable_glyf.h
+++ b/src/sfnt/SkOTTable_glyf.h
@@ -40,7 +40,7 @@ struct SkOTTableGlyph {
void advance(uint16_t num) {
fLocaPtr.shortOffset += num << fLocaFormat;
fCurrentGlyphOffset = fLocaFormat ? SkEndian_SwapBE32(*fLocaPtr.longOffset)
- : SkEndian_SwapBE16(*fLocaPtr.shortOffset) << 1;
+ : uint32_t(SkEndian_SwapBE16(*fLocaPtr.shortOffset) << 1);
}
const SkOTTableGlyphData* next() {
uint32_t previousGlyphOffset = fCurrentGlyphOffset;