string.format("%x")
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: string.format("%x")
 
- From: "Eric Tetz" <erictetz@...>
 
- Date: 2007年11月20日 16:01:02 -0800
 
I'm porting some Perl to Lua and ran into a snag.
string.format("%x", 4294964480)
string.format("%x", 0xFFFFF500)
Produce "80000000" rather than "FFFFF500". 
I'm building with MSVC 7 (free tools). Doesn't happen if I build with Borland's free tools. It appears to be related to a build flag, but I haven't isolated it yet. In the meantime, I figured I'd throw it out here. 
Anybody seen anything like this before?
Cheers,
Eric