Re: ffi.cast: weird behaviour

  • From: Mike Pall <mike-1311@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 22 Nov 2013 15:25:11 +0100

Daurnimator wrote:
> What is wrong with using unsigned here (just performance?)

uint32_t is always converted to a double on access. The compiler
can eliminate that conversion in many cases, but not all.

> What was incorrect about my previous mantissa condition?

not (a==0 and b==0)  ==>  a ~= 0 or b ~= 0

But you used 'and'.

--Mike

Other related posts: