lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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