fix lua print() on some systems, due to mistaken use of printf %Lg instead of just plain %g

This commit is contained in:
zeromus 2016-12-12 22:25:41 +00:00
parent df3d5c9bbe
commit 71e414cfac
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{