This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: signed is undefined and has been since 1992 (in GCC)


On Tue, Jun 28, 2005 at 09:32:49AM -0700, Joe Buck wrote:
>     /* int a, b, c; */
>     if (b > 0) {
> 	a = b + c;
> 	int count;
> 	for (int i = c; i <= a; i++)
> 	    count++;
> 	some_func(count);
>     }

I forgot to initialize count to 0, of course.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]