Lunatic: build fix on Windows and translator fix with 32-bit archs?

erratum in r2844 commit message:
ydim vs. bytesperline --> xdim vs. bytesperline

git-svn-id: https://svn.eduke32.com/eduke32@2849 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-07-25 18:56:18 +00:00
parent 568f213de8
commit 0e6c83bb1b
3 changed files with 4 additions and 2 deletions

View file

@ -38,7 +38,8 @@ actor;
ud; ud;
g_player; g_player;
luaJIT_BC_*; luaJIT_BC_lunacon;
luaJIT_BC_con_lang;
gethitickms; gethitickms;
}; };

View file

@ -129,7 +129,7 @@ local function parse_number(pos, numstr)
num = NaN num = NaN
elseif (num >= 0x80000000 and numstr:sub(1,2):lower()~="0x") then elseif (num >= 0x80000000 and numstr:sub(1,2):lower()~="0x") then
pwarnprintf(pos, "number %s converted to a negative one", numstr) pwarnprintf(pos, "number %s converted to a negative one", numstr)
num = num-0x100000000 num = num-(0xffffffff+1)
end end
return num return num

View file

@ -204,6 +204,7 @@ gameevent(gv.EVENT_ENTERLEVEL,
t = gv.gethitickms()-t t = gv.gethitickms()-t
-- x86_64: 40ns/call, x86: 290 ns/call -- 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)", printf("%d gethitickms() calls took %.03f ms (%.03f us/call)",
N, t, (t*1000)/N) N, t, (t*1000)/N)