lua

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

commit c75cca0559e637e9c6ea393c55940533eaf21a8b
parent 1414b7123ca46f7e133ee71400e8ed7f95187c47
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Sun, 26 May 2013 11:43:10 -0300

detail (case '%d' of 'luaO_pushvfstring' should use integers)

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

diff --git a/lobject.c b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 2.62 2013/05/02 12:37:24 roberto Exp roberto $ +** $Id: lobject.c,v 2.63 2013/05/14 15:59:04 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -270,7 +270,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { break; } case 'd': { - setnvalue(L->top++, cast_num(va_arg(argp, int))); + setivalue(L->top++, va_arg(argp, int)); break; } case 'I': {