diff --git a/polymer/eduke32/source/lunatic/dynsymlist b/polymer/eduke32/source/lunatic/dynsymlist index 9c4b84c3c..0825a7140 100644 --- a/polymer/eduke32/source/lunatic/dynsymlist +++ b/polymer/eduke32/source/lunatic/dynsymlist @@ -38,7 +38,8 @@ actor; ud; g_player; -luaJIT_BC_*; +luaJIT_BC_lunacon; +luaJIT_BC_con_lang; gethitickms; }; diff --git a/polymer/eduke32/source/lunatic/lunacon.lua b/polymer/eduke32/source/lunatic/lunacon.lua index db71d2917..ca367c411 100644 --- a/polymer/eduke32/source/lunatic/lunacon.lua +++ b/polymer/eduke32/source/lunatic/lunacon.lua @@ -129,7 +129,7 @@ local function parse_number(pos, numstr) num = NaN elseif (num >= 0x80000000 and numstr:sub(1,2):lower()~="0x") then pwarnprintf(pos, "number %s converted to a negative one", numstr) - num = num-0x100000000 + num = num-(0xffffffff+1) end return num diff --git a/polymer/eduke32/source/lunatic/test.elua b/polymer/eduke32/source/lunatic/test.elua index 5c1b4ba12..cfa2823a2 100644 --- a/polymer/eduke32/source/lunatic/test.elua +++ b/polymer/eduke32/source/lunatic/test.elua @@ -204,6 +204,7 @@ gameevent(gv.EVENT_ENTERLEVEL, t = gv.gethitickms()-t -- x86_64: 40ns/call, x86: 290 ns/call + -- Windows 32-bit: about 1 us/call printf("%d gethitickms() calls took %.03f ms (%.03f us/call)", N, t, (t*1000)/N)