Re: Math crashes with translated programs (Rob?)

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

I fixed the Translator bug that Andy Serpa reported
and I sent him a new Complete Edition ecw.exe. 
I won't be doing a new release
of the Translator for a couple of months, but if you are a registered
user of the Translator, and you think you've encountered this bug, 
I can give you the file I gave to Andy.

The bug occurs when:
    - you declare a variable as atom or object
and
    - you assign an obvious (at compile-time) integer value to it
and
    - within a couple of statements (one basic block)
       you re-assign the same variable with the result of a binary
       operation (multiply, add, subtract) on two obviously integer values
and
    - the binary operation on the integer values 
      overflows 31 bits (+/- 1.07 billion)

The result could be an incorrect value or a crash.

The fix was easy - just one statement in the Translator was changed.
Several large programs that I re-translated did not have this bug anywhere.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu