Kaydet (Commit) 9760621b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Work around -Werror=type-limits when plain char is unsigned

...assuming the original intent of the code was to check for ASCII range 0x20--
0x7F.

Change-Id: I8033890a76e059d997efb01431207a453f00a981
üst 71420905
......@@ -207,7 +207,7 @@ bool GrFeatureParser::isCharId(const OString & id, size_t offset, size_t length)
for (size_t i = 0; i < length; i++)
{
if (i > 0 && id[offset+i] == '\0') continue;
if ((id[offset+i] < 0x20) || (id[offset+i] < 0))
if (id[offset+i] < 0x20 || static_cast<signed char>(id[offset+i]) < 0)
return false;
if (i==0 && (id[offset+i] < 0x41))
return false;
......
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