From e320b5b672262bda322c5c0458c2767f1641cf60 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 6 Dec 2011 14:33:55 -0200 Subject: [PATCH] small bug: format '%d' for lua_Number argument --- lauxlib.c | 4 ++-- 1 file 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 @@ /* -** $Id: lauxlib.c,v 1.238 2011/11/30 12:58:57 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.239 2011/12/02 13:25:57 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -944,7 +944,7 @@ LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver) { if (v != lua_version(NULL)) luaL_error(L, "multiple Lua VMs detected"); else if (*v != ver) - luaL_error(L, "version mismatch: app. needs %d, Lua core provides %f", + luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f", ver, *v); /* check conversions number -> integer types */ lua_pushnumber(L, -(lua_Number)0x1234);