1
0
mirror of https://github.com/lua/lua.git synced 2025-02-04 06:13:04 +08:00

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

This commit is contained in:
Roberto Ierusalimschy 2013-05-26 11:43:35 -03:00
parent 1414b7123c
commit c75cca0559

View File

@ -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 ** Some generic functions over Lua objects
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -270,7 +270,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
break; break;
} }
case 'd': { case 'd': {
setnvalue(L->top++, cast_num(va_arg(argp, int))); setivalue(L->top++, va_arg(argp, int));
break; break;
} }
case 'I': { case 'I': {