oracle / fastr

A high-performance implementation of the R programming language, built on GraalVM.
Other
624 stars 64 forks source link

missing warning on integer overflow #136

Closed o- closed 4 years ago

o- commented 4 years ago

I noticed fastr seems to be missing a warning on integer overflow.

For example:

$ graalvm-ce-java11-20.0.0/bin/R --quiet -e '2147483647L + 1L'
> 2147483647L + 1L
[1] NA

versus

$ R --quiet -e '2147483647L + 1L'
> 2147483647L + 1L
[1] NA
Warning message:
In 2147483647L + 1L : NAs produced by integer overflow
steve-s commented 4 years ago

Hello,

thank you for the report. It should be fixed in master now.