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

(fix ported from fceux)
This commit is contained in:
zeromus 2016-12-12 16:26:21 -06:00
parent 5cfb407f35
commit 1cc8cb6fc6
1 changed files with 1 additions and 1 deletions

View File

@ -922,7 +922,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)
{