aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index b8d4ba02..62246d8b 100644
--- a/liolib.c
+++ b/liolib.c
@@ -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] != '*')