|
Nmap Development
mailing list archives
Re: [NSE patch] patch for pack/unpack to use platform independant types
From: "Philip Pickering" <pgpickering () gmail com>
Date: Mon, 18 Aug 2008 07:38:42 +0200
Hi!
Just another problem I was working on the last few days:
local l = bin.pack(">L", 18446740000000000000)
print(bin.unpack("H" .. #l, l))
prints on windows:
9 8000000000000000
instead of
9 FFFFFC4B83FD4000
(as it does on Linux)
Even when I typecast the lua_Number (which is
a double) to an unsigned __int64 directly in
luaL_checknumber and print it, it is exactly 2^63.
Does anyone have a clue?
Philip
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
By Date
By Thread
Current thread:
- Re: [NSE patch] patch for pack/unpack to use platform independant types, (continued)
Re: [NSE patch] patch for pack/unpack to use platform independant types David Fifield (Aug 26)
|