浏览代码

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

Roberto Ierusalimschy 12 年之前
父节点
当前提交
c75cca0559
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lobject.c

+ 2 - 2
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
 ** 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': {