Commit 566c48cb authored by David Binderman's avatar David Binderman Committed by Bernhard Link

fix logical error in parsing of \ddd escapes

parent 3ae9cf2f
......@@ -402,9 +402,9 @@ static const char *get_const_token(struct parser *parser, bool optional) {
*q++ = *p++;
else {
*q = *(p++) - '0';
if( *p >= '0' || *p <= '7' )
if( *p >= '0' && *p <= '7' )
*q = *q * 8 + *(p++) - '0';
if( *p >= '0' || *p <= '7' )
if( *p >= '0' && *p <= '7' )
*q = *q * 8 + *(p++) - '0';
q++;
}
......
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