diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-12 18:44:17 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-12 18:44:17 -0300 |
commit | 45c430eac04b070a996437b79e40656942a4c7d4 (patch) | |
tree | 4816147bf5b2066fda992a131839c208b4ad391c /lobject.c | |
parent | 27d9219cf3649a195fdf7a2211efcb704cf3bffc (diff) | |
download | lua-45c430eac04b070a996437b79e40656942a4c7d4.tar.gz lua-45c430eac04b070a996437b79e40656942a4c7d4.tar.bz2 lua-45c430eac04b070a996437b79e40656942a4c7d4.zip |
addition of '.0' to float representation done by the kernel
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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': { |