[R-SIG-Mac] Math bug in Mavericks build

Erich Neuwirth erich.neuwirth at univie.ac.at
Wed Apr 23 11:10:52 CEST 2014


Some more strange things:

> 2000000000L+200000000L
[1] -2094967296
> 2000000000L*2L
[1] NA
> 2147483647L+2147483647L
[1] -2

(2147483647 = 2^31-1)

So this looks like an integer overflow is not caught for addition, but it is for multiplication



This is my R version:

> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20140423/14c7e7df/attachment-0001.bin>


More information about the R-SIG-Mac mailing list