Bug Generating NaN/Infinite Values

Catch-22

Active member
Yeah, it's me again, but before you throw tomatoes, I've got a patch!

Given that ASH no longer adheres to IEEE 754, we need to disallow any arithmetic operations from returning ±∞/NaN. With the exception of "**", which was handled specifically in r11292, all other operations are currently capable of returning +∞/-∞ (which can be divided by itself to return NaN).

The patch is pretty simple, it just shifts the changes from r11292 down to apply to the return val of all arithmetic and changes the exception message slightly.

Operation "*" produced an invalid result: Infinity
 

Attachments

  • Operator.java.patch
    1.1 KB · Views: 28
Last edited:
Top