mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
BUG: ISO chars are negative, ISO ints are not.
This commit is contained in:
parent
78e454d864
commit
169870e37d
5
iolib.c
5
iolib.c
@ -122,9 +122,10 @@ static void io_read (void)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char *ep = item_end(p); /* get what is next */
|
char *ep = item_end(p); /* get what is next */
|
||||||
int m;
|
int m; /* match result */
|
||||||
if (c == NEED_OTHER) c = getc(lua_infile);
|
if (c == NEED_OTHER) c = getc(lua_infile);
|
||||||
if ((m = singlematch(c, p)) != 0) {
|
m = (c == EOF) ? 0 : singlematch((char)c, p);
|
||||||
|
if (m) {
|
||||||
if (!inskip) luaI_addchar(c);
|
if (!inskip) luaI_addchar(c);
|
||||||
c = NEED_OTHER;
|
c = NEED_OTHER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user