Index: Source/platform/fonts/GlyphPage.h |
diff --git a/Source/platform/fonts/GlyphPage.h b/Source/platform/fonts/GlyphPage.h |
index 98812862bef202ef52c385d08af2e62e96294793..47f3fca493316124551fa926fab64bd1b9f11938 100644 |
--- a/Source/platform/fonts/GlyphPage.h |
+++ b/Source/platform/fonts/GlyphPage.h |
@@ -98,8 +98,9 @@ public: |
~GlyphPage() { } |
- static const size_t size = 256; // Covers Latin-1 in a single page. |
- static unsigned indexForCharacter(UChar32 c) { return c % GlyphPage::size; } |
+ static const unsigned char sizeBits = 8; |
+ static const size_t size = (1 << GlyphPage::sizeBits); // Covers Latin-1 in a single page. |
+ static unsigned indexForCharacter(UChar32 c) { return c & 0xFF; } |
ALWAYS_INLINE GlyphData glyphDataForCharacter(UChar32 c) const |
{ |