[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15842: Integer overflow on Mac OS X 64-bit

From: Mark H Weaver
Subject: bug#15842: Integer overflow on Mac OS X 64-bit
Date: Thu, 14 Nov 2013 19:25:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Geert Janssens <address@hidden> writes:
> I am experimenting with swig bindings for guile on Mac OS X. One of the 
> swig tests (the integer test) is failing. I am aware that swig is not 
> guile, but the bug seems to be reproducible in pure guile as well.
> When I calculate (2^64) -1 on the Mac OS X platform, it returns -1. On 
> my fedora system, the same calculation returns
> 18446744073709551615

When reporting bugs, please tell us what version of Guile you're using.

This is fixed in Guile 2.0.9.  The bug came into existence when clang
started optimizing out overflow checks, on the theory that if a signed
integer overflow occurs then the behavior is unspecified and thus the
compiler can do whatever it likes.


I'm closing this bug, on the assumption that you're using an old Guile
release.  Please reopen it if the problem still exists in 2.0.9.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]