[issue1608] test_str.py crashes
Ismail Donmez
report at bugs.python.org
Thu Dec 13 20:30:47 CET 2007
Ismail Donmez added the comment:
Following testcase doesn't print overflow with gcc 4.3 when compiled
with -O3, works with gcc 3.4.6 though.
#include <sys/types.h>
#include <stdio.h>
void foo(ssize_t x)
{
if (x >= 0) {
if (x+x < 0) printf("Overflow\n");
}
}
main()
{
volatile ssize_t x =2147483647;
foo(x);
}
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1608>
__________________________________
More information about the Python-bugs-list
mailing list