[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Possible Bug in bitlib under Windows?
- From: duck <duck@...>
- Date: Thu, 11 Dec 2008 21:43:09 +1100 (EST)
>I was using bit.band() with the arguments 3 and 0xFFFFFFFF
>and it returned 0, but on Linux, the same function
Was the argument 0xFFFFFFFF originally derived from a literal?
If so, I'll hazard a guess that the problem happens in the Lua compiler,
compile time, when the parser converts the string token 0xFFFFFFFF into a
If your code contains the string "0xFFFFFFFF", try replacing it with
"4294967295" or "2^32-1" and see what happens. If it then works, you know
that the problem isn't in bitlib itself.