This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Where does the C standard describe overflow of signed integers?
- From: Georg Bauhaus <bauhaus at uni-duisburg dot de>
- To: Georg Bauhaus <bauhaus at futureapps dot de>
- Cc: Paul Schlie <schlie at comcast dot net>, Robert Dewar <dewar at adacore dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 15 Jul 2005 15:33:17 +0200
- Subject: Re: Where does the C standard describe overflow of signed integers?
- References: <BEFC3FA7.AD21%schlie@comcast.net> <42D7B82B.7010102@futureapps.de>
Georg Bauhaus wrote:
(There are at least two bugs in this :-/ but corrections
won't change the picture. Neither will initialisation.)
#define BUFFER_SIZE 1000 // must be > 0
#define ITERATIONS 100000 // must be > 0
assert(hi > 0);
for (size_t c=0; c < hi + 2; ++c) {
if (a[c]) {