Re: Bug in Win32Lib?

new topic     » goto parent     » topic index » view thread      » older message » newer message

CoJaBo wrote:
> 
> Occasionally when running Euphoria DOS programs, I get the error:
> ...\win32lib.ew:32613 in procedure eventLoop()
> bitwise operations are limited to 32-bit numbers
> ... called from ...\win32lib.ew:32794 in procedure WinMain()
> ... called from ...\IDE\IDE.exw:19154
> --> see ex.err
> ...
> 
> I've only noticed this with IDE and only on this computer.
> 

Thanks.  This was reported earlier. It will probably only happen on 
long running programs. Anyhow, I've fixed the issue now for the next 
release.

If you'd like to test it, in the eventLoop() routine, replace the lines ...

 w32Seed = xor_bits(floor(w32Seed), peek4u(msg+16))
 w32Seed = xor_bits(floor(w32Seed), peek4u(msg+20) * peek4u(msg+24))
 w32Seed += 1

with 

w32Seed = remainder((w32Seed * peek4u(msg+16)) 
                    + 1 + peek4u(msg+20) * peek4u(msg+24), 
                    #FFFFFFFF)


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu