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
Current thread:
- [NSE patch] patch for pack/unpack to use platform independant types Sven Klemm (Aug 07)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Sven Klemm (Aug 14)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Philip Pickering (Aug 14)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Philip Pickering (Aug 15)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Sven Klemm (Aug 16)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Fyodor (Aug 16)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Sven Klemm (Aug 17)
- Re: [NSE patch] patch for pack/unpack to use platform independant types doug (Aug 17)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Philip Pickering (Aug 17)
- Message not available
- Re: [NSE patch] patch for pack/unpack to use platform independant types Philip Pickering (Aug 17)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Philip Pickering (Aug 21)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Philip Pickering (Aug 14)
- Re: [NSE patch] patch for pack/unpack to use platform independant types Sven Klemm (Aug 14)
- Re: [NSE patch] patch for pack/unpack to use platform independant types David Fifield (Aug 29)
- Re: [NSE patch] patch for pack/unpack to use platform independant types jah (Sep 03)
- Re: [NSE patch] patch for pack/unpack to use platform independant types David Fifield (Sep 03)
- Re: [NSE patch] patch for pack/unpack to use platform independant types jah (Sep 03)
- Re: [NSE patch] patch for pack/unpack to use platform independant types David Fifield (Sep 03)
