mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #587 from iij/pr-string-octal
Fix loss of MSB in conditions of octal formatted string
This commit is contained in:
+2
-1
@@ -3307,7 +3307,8 @@ read_escape(parser_state *p)
|
||||
int buf[3];
|
||||
int i;
|
||||
|
||||
for (i=0; i<3; i++) {
|
||||
buf[0] = c;
|
||||
for (i=1; i<3; i++) {
|
||||
buf[i] = nextc(p);
|
||||
if (buf[i] == -1) goto eof;
|
||||
if (buf[i] < '0' || '7' < buf[i]) {
|
||||
|
||||
Reference in New Issue
Block a user