aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-12-20 16:37:00 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-12-20 16:37:00 -0200
commit9903dd52a39fbe4531596b1266e226f01769de21 (patch)
tree98bce931ed24b087fffa52123c8f8c23fe39e4f4 /lauxlib.c
parent24f6e236a3346183fe8a946568e6b0cd864abd42 (diff)
downloadlua-9903dd52a39fbe4531596b1266e226f01769de21.tar.gz
lua-9903dd52a39fbe4531596b1266e226f01769de21.tar.bz2
lua-9903dd52a39fbe4531596b1266e226f01769de21.zip
Using LUAI_UAC* types more consistently on vararg calls
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 35ad7846..7b14ca4d 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.287 2016/12/04 20:09:45 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.288 2016/12/04 20:17:24 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -816,9 +816,9 @@ LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {
816 switch (lua_type(L, idx)) { 816 switch (lua_type(L, idx)) {
817 case LUA_TNUMBER: { 817 case LUA_TNUMBER: {
818 if (lua_isinteger(L, idx)) 818 if (lua_isinteger(L, idx))
819 lua_pushfstring(L, "%I", lua_tointeger(L, idx)); 819 lua_pushfstring(L, "%I", (LUAI_UACINT)lua_tointeger(L, idx));
820 else 820 else
821 lua_pushfstring(L, "%f", lua_tonumber(L, idx)); 821 lua_pushfstring(L, "%f", (LUAI_UACNUMBER)lua_tonumber(L, idx));
822 break; 822 break;
823 } 823 }
824 case LUA_TSTRING: 824 case LUA_TSTRING:
@@ -1038,6 +1038,6 @@ LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) {
1038 luaL_error(L, "multiple Lua VMs detected"); 1038 luaL_error(L, "multiple Lua VMs detected");
1039 else if (*v != ver) 1039 else if (*v != ver)
1040 luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f", 1040 luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f",
1041 ver, *v); 1041 (LUAI_UACNUMBER)ver, (LUAI_UACNUMBER)*v);
1042} 1042}
1043 1043