This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author donmez
Recipients donmez, gvanrossum, loewis
Date 2007-12-13.19:30:47
SpamBayes Score 0.001520669
Marked as misclassified No
Message-id <1197574247.9.0.972213004625.issue1608@psf.upfronthosting.co.za>
In-reply-to
Content
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);
}
History
Date User Action Args
2007-12-13 19:30:48donmezsetspambayes_score: 0.00152067 -> 0.001520669
recipients: + donmez, gvanrossum, loewis
2007-12-13 19:30:47donmezsetspambayes_score: 0.00152067 -> 0.00152067
messageid: <1197574247.9.0.972213004625.issue1608@psf.upfronthosting.co.za>
2007-12-13 19:30:47donmezlinkissue1608 messages
2007-12-13 19:30:47donmezcreate