diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-11 14:06:01 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-11 14:06:01 -0200 |
commit | cca78b5c71f4def3d3d80c71f690f8380b3cb35e (patch) | |
tree | 2cd311e82e2c5b919b570fc3552b1a19c6c5a799 /liolib.c | |
parent | d435b7acd84cb3fbf94f5350da233ef1606319de (diff) | |
download | lua-cca78b5c71f4def3d3d80c71f690f8380b3cb35e.tar.gz lua-cca78b5c71f4def3d3d80c71f690f8380b3cb35e.tar.bz2 lua-cca78b5c71f4def3d3d80c71f690f8380b3cb35e.zip |
Visual C++ warning
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.45 1999/09/13 19:42:02 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.46 1999/10/07 19:18:36 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 | */ |
@@ -352,7 +352,7 @@ static void io_read (void) { | |||
352 | int success; | 352 | int success; |
353 | luaL_resetbuffer(); | 353 | luaL_resetbuffer(); |
354 | if (lua_isnumber(op)) | 354 | if (lua_isnumber(op)) |
355 | success = read_chars(f, lua_getnumber(op)); | 355 | success = read_chars(f, (int)lua_getnumber(op)); |
356 | else { | 356 | else { |
357 | const char *p = luaL_opt_string(arg, "*l"); | 357 | const char *p = luaL_opt_string(arg, "*l"); |
358 | if (p[0] != '*') | 358 | if (p[0] != '*') |