aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-29 13:01:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-29 13:01:00 -0300
commit3ccbae84d2be8e2978a65bcea15b3fffba7664f5 (patch)
tree5d375f2e0c64840e2849620043aafe9bd17e46d9 /liolib.c
parent255d59ed5e2743b97626eff57444f44defc39270 (diff)
downloadlua-3ccbae84d2be8e2978a65bcea15b3fffba7664f5.tar.gz
lua-3ccbae84d2be8e2978a65bcea15b3fffba7664f5.tar.bz2
lua-3ccbae84d2be8e2978a65bcea15b3fffba7664f5.zip
added some casts between integral types (to avoid 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 b7f4c55a..42dcb7ef 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.126 2014/06/02 03:00:51 roberto Exp roberto $ 2** $Id: liolib.c,v 2.127 2014/06/30 19:48:08 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*/
@@ -654,7 +654,7 @@ static int f_setvbuf (lua_State *L) {
654 FILE *f = tofile(L); 654 FILE *f = tofile(L);
655 int op = luaL_checkoption(L, 2, NULL, modenames); 655 int op = luaL_checkoption(L, 2, NULL, modenames);
656 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); 656 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE);
657 int res = setvbuf(f, NULL, mode[op], sz); 657 int res = setvbuf(f, NULL, mode[op], (size_t)sz);
658 return luaL_fileresult(L, res == 0, NULL); 658 return luaL_fileresult(L, res == 0, NULL);
659} 659}
660 660