aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-10-19 11:05:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-10-19 11:05:11 -0200
commited7039024d32778a62fd52a98fe98f3e38133853 (patch)
tree3c374aa6d13a0be4698f57088287b4ffd0d2b145 /liolib.c
parent5511bf6b9d6018665f5c184c5a464bb8b0aceca5 (diff)
downloadlua-ed7039024d32778a62fd52a98fe98f3e38133853.tar.gz
lua-ed7039024d32778a62fd52a98fe98f3e38133853.tar.bz2
lua-ed7039024d32778a62fd52a98fe98f3e38133853.zip
avoid some warnings
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index e723b656..eb4df497 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.67 2005/08/26 17:36:32 roberto Exp roberto $ 2** $Id: liolib.c,v 2.68 2005/10/14 16:24:11 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*/
@@ -424,7 +424,7 @@ static int f_seek (lua_State *L) {
424 static const char *const modenames[] = {"set", "cur", "end", NULL}; 424 static const char *const modenames[] = {"set", "cur", "end", NULL};
425 FILE *f = tofile(L); 425 FILE *f = tofile(L);
426 int op = luaL_checkoption(L, 2, "cur", modenames); 426 int op = luaL_checkoption(L, 2, "cur", modenames);
427 lua_Integer offset = luaL_optinteger(L, 3, 0); 427 long offset = luaL_optlong(L, 3, 0);
428 op = fseek(f, offset, mode[op]); 428 op = fseek(f, offset, mode[op]);
429 if (op) 429 if (op)
430 return pushresult(L, 0, NULL); /* error */ 430 return pushresult(L, 0, NULL); /* error */