#931: fix end of acceptable glyph/unicode range

This commit is contained in:
Jason Wray
2015-03-04 16:59:29 -08:00
parent e07e980732
commit 79148e15e6

View File

@@ -7,7 +7,7 @@ GlyphRange getGlyphRange(char32_t glyph) {
unsigned start = (glyph/256) * 256;
unsigned end = (start + 255);
if (start > 65280) start = 65280;
if (end > 65533) end = 65533;
if (end > 65535) end = 65535;
return { start, end };
}