fix lua print() on some systems, due to mistaken use of printf %Lg instead of just plain %g
This commit is contained in:
parent
df3d5c9bbe
commit
71e414cfac
|
@ -1410,7 +1410,7 @@ static void toCStringConverter(lua_State* L, int i, char*& ptr, int& remaining)
|
|||
case LUA_TNIL: APPENDPRINT "nil" END break;
|
||||
case LUA_TBOOLEAN: APPENDPRINT lua_toboolean(L,i) ? "true" : "false" END break;
|
||||
case LUA_TSTRING: APPENDPRINT "%s",lua_tostring(L,i) END break;
|
||||
case LUA_TNUMBER: APPENDPRINT "%.12Lg",lua_tonumber(L,i) END break;
|
||||
case LUA_TNUMBER: APPENDPRINT "%.12g",lua_tonumber(L,i) END break;
|
||||
case LUA_TFUNCTION:
|
||||
/*if((L->base + i-1)->value.gc->cl.c.isC)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue