aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-12-06 14:33:55 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-12-06 14:33:55 -0200
commite320b5b672262bda322c5c0458c2767f1641cf60 (patch)
tree3e119c2aaaf2a27bb92f428993e5a7f41558f74e
parentca9c405fef78137453502c5d7fd1dee64fdf3a02 (diff)
downloadlua-e320b5b672262bda322c5c0458c2767f1641cf60.tar.gz
lua-e320b5b672262bda322c5c0458c2767f1641cf60.tar.bz2
lua-e320b5b672262bda322c5c0458c2767f1641cf60.zip
small bug: format '%d' for lua_Number argument
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 822f7955..2a02b7c6 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.238 2011/11/30 12:58:57 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.239 2011/12/02 13:25:57 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*/
@@ -944,7 +944,7 @@ LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver) {
944 if (v != lua_version(NULL)) 944 if (v != lua_version(NULL))
945 luaL_error(L, "multiple Lua VMs detected"); 945 luaL_error(L, "multiple Lua VMs detected");
946 else if (*v != ver) 946 else if (*v != ver)
947 luaL_error(L, "version mismatch: app. needs %d, Lua core provides %f", 947 luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f",
948 ver, *v); 948 ver, *v);
949 /* check conversions number -> integer types */ 949 /* check conversions number -> integer types */
950 lua_pushnumber(L, -(lua_Number)0x1234); 950 lua_pushnumber(L, -(lua_Number)0x1234);