From 45c430eac04b070a996437b79e40656942a4c7d4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 12 May 2014 18:44:17 -0300 Subject: addition of '.0' to float representation done by the kernel --- lobject.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lobject.c') diff --git a/lobject.c b/lobject.c index 025f94b0..93acc9ae 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 2.84 2014/05/01 18:18:06 roberto Exp roberto $ +** $Id: lobject.c,v 2.85 2014/05/12 21:22:05 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -356,14 +356,17 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { } case 'd': { setivalue(L->top++, cast_int(va_arg(argp, int))); + luaV_tostring(L, L->top - 1); break; } case 'I': { setivalue(L->top++, cast(lua_Integer, va_arg(argp, l_uacInt))); + luaV_tostring(L, L->top - 1); break; } case 'f': { setfltvalue(L->top++, cast_num(va_arg(argp, l_uacNumber))); + luaV_tostring(L, L->top - 1); break; } case 'p': { -- cgit v1.2.3-55-g6feb