unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#15842: Integer overflow on Mac OS X 64-bit
@ 2013-11-09 16:39 Geert Janssens
  2013-11-14  7:22 ` William S Fulton
  2013-11-15  0:25 ` Mark H Weaver
  0 siblings, 2 replies; 4+ messages in thread
From: Geert Janssens @ 2013-11-09 16:39 UTC (permalink / raw)
  To: 15842

[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]

Hi,

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

The scheme command used for this is
(display (- (expt 2 64) 1))(newline)

Note that I don't have direct access to a 64-bit Mac OS X system. I have 
run into this bug via that travis CI service.

Here's a link to one of the test runs for swig on that platform:
https://travis-ci.org/gjanssens/swig/jobs/13730706
The output of the calculation as given above is on line 2161.
(The test is missing the (newline) part, so some additional output is 
appended on the same line. This comes from another display command 
though).

I'm not sure what additional information I can provide. If you need, I 
can run more tests indirectly on the travis platform, but other than 
that, my options are fairly limited.

Geert

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-15  8:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-09 16:39 bug#15842: Integer overflow on Mac OS X 64-bit Geert Janssens
2013-11-14  7:22 ` William S Fulton
2013-11-15  0:25 ` Mark H Weaver
2013-11-15  8:24   ` Geert Janssens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).