aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lobject.c b/lobject.c
index 025f94b0..93acc9ae 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.84 2014/05/01 18:18:06 roberto Exp roberto $ 2** $Id: lobject.c,v 2.85 2014/05/12 21:22:05 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*/
@@ -356,14 +356,17 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
356 } 356 }
357 case 'd': { 357 case 'd': {
358 setivalue(L->top++, cast_int(va_arg(argp, int))); 358 setivalue(L->top++, cast_int(va_arg(argp, int)));
359 luaV_tostring(L, L->top - 1);
359 break; 360 break;
360 } 361 }
361 case 'I': { 362 case 'I': {
362 setivalue(L->top++, cast(lua_Integer, va_arg(argp, l_uacInt))); 363 setivalue(L->top++, cast(lua_Integer, va_arg(argp, l_uacInt)));
364 luaV_tostring(L, L->top - 1);
363 break; 365 break;
364 } 366 }
365 case 'f': { 367 case 'f': {
366 setfltvalue(L->top++, cast_num(va_arg(argp, l_uacNumber))); 368 setfltvalue(L->top++, cast_num(va_arg(argp, l_uacNumber)));
369 luaV_tostring(L, L->top - 1);
367 break; 370 break;
368 } 371 }
369 case 'p': { 372 case 'p': {