Commit fa813adc authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Remove < 0 ifs for unsigned

parent 1969bcd6
......@@ -370,10 +370,6 @@ double SplashFTFont::getGlyphAdvance(int c)
} else {
gid = (FT_UInt)c;
}
if (ff->trueType && gid < 0) {
// skip the TrueType notdef glyph
return -1;
}
if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(ff->type1, ff->trueType, aa, enableFreeTypeHinting, enableSlightHinting))) {
return -1;
......@@ -419,10 +415,6 @@ SplashPath *SplashFTFont::getGlyphPath(int c) {
} else {
gid = (FT_UInt)c;
}
if (ff->trueType && gid < 0) {
// skip the TrueType notdef glyph
return NULL;
}
if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(ff->type1, ff->trueType, aa, enableFreeTypeHinting, enableSlightHinting))) {
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment