diff options
Diffstat (limited to 'liolib.c')
| -rw-r--r-- | liolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: liolib.c,v 1.105 2001/02/09 16:25:50 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.106 2001/02/09 19:52:54 roberto Exp roberto $ |
| 3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -214,7 +214,7 @@ static int read_number (lua_State *L, FILE *f) { | |||
| 214 | 214 | ||
| 215 | 215 | ||
| 216 | static int read_word (lua_State *L, FILE *f) { | 216 | static int read_word (lua_State *L, FILE *f) { |
| 217 | int c; | 217 | l_charint c; |
| 218 | luaL_Buffer b; | 218 | luaL_Buffer b; |
| 219 | luaL_buffinit(L, &b); | 219 | luaL_buffinit(L, &b); |
| 220 | do { c = fgetc(f); } while (isspace(c)); /* skip spaces */ | 220 | do { c = fgetc(f); } while (isspace(c)); /* skip spaces */ |
| @@ -273,7 +273,7 @@ static void read_file (lua_State *L, FILE *f) { | |||
| 273 | 273 | ||
| 274 | static int read_chars (lua_State *L, FILE *f, size_t n) { | 274 | static int read_chars (lua_State *L, FILE *f, size_t n) { |
| 275 | if (n == 0) { /* test eof? */ | 275 | if (n == 0) { /* test eof? */ |
| 276 | int c = fgetc(f); | 276 | l_charint c = fgetc(f); |
| 277 | ungetc(c, f); | 277 | ungetc(c, f); |
| 278 | lua_pushlstring(L, NULL, 0); | 278 | lua_pushlstring(L, NULL, 0); |
| 279 | return (c != EOF); | 279 | return (c != EOF); |
