summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
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