lua

A copy of the Lua development repository
Log | Files | Refs | README

commit e320b5b672262bda322c5c0458c2767f1641cf60
parent ca9c405fef78137453502c5d7fd1dee64fdf3a02
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  6 Dec 2011 14:33:31 -0200

small bug: format '%d' for lua_Number argument

Diffstat:
Mlauxlib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);