Commit af79ebab authored by Francis Dupont's avatar Francis Dupont

[5036] Fixed control char test for signed chars

parent 4a559a59
......@@ -2641,7 +2641,7 @@ YY_RULE_SETUP
}
break;
default:
if (c < 0x20) {
if ((c > 0) && (c < 0x20)) {
// impossible condition
driver.error(driver.loc_, "Invalid control in \"" + raw + "\"");
}
......
......@@ -968,7 +968,7 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
}
break;
default:
if (c < 0x20) {
if ((c >= 0) && (c < 0x20)) {
// impossible condition
driver.error(driver.loc_, "Invalid control in \"" + raw + "\"");
}
......
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