diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-29 13:01:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-29 13:01:00 -0300 |
commit | 3ccbae84d2be8e2978a65bcea15b3fffba7664f5 (patch) | |
tree | 5d375f2e0c64840e2849620043aafe9bd17e46d9 /liolib.c | |
parent | 255d59ed5e2743b97626eff57444f44defc39270 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||