diff options
Diffstat (limited to 'lobject.c')
| -rw-r--r-- | lobject.c | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.c,v 2.58 2013/02/20 14:08:56 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.59 2013/04/16 18:46:28 roberto Exp roberto $ |
| 3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -219,6 +219,13 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { | |||
| 219 | setnvalue(L->top++, cast_num(va_arg(argp, int))); | 219 | setnvalue(L->top++, cast_num(va_arg(argp, int))); |
| 220 | break; | 220 | break; |
| 221 | } | 221 | } |
| 222 | case 'I': { | ||
| 223 | char buff[LUA_MAXINTEGER2STR]; | ||
| 224 | lua_Integer i = cast(lua_Integer, va_arg(argp, lua_Integer)); | ||
| 225 | int l = lua_integer2str(buff, i); | ||
| 226 | pushstr(L, buff, l); | ||
| 227 | break; | ||
| 228 | } | ||
| 222 | case 'f': { | 229 | case 'f': { |
| 223 | setnvalue(L->top++, cast_num(va_arg(argp, l_uacNumber))); | 230 | setnvalue(L->top++, cast_num(va_arg(argp, l_uacNumber))); |
| 224 | break; | 231 | break; |
