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

Joe Buck Joe.Buck@synopsys.COM
Tue Jun 28 16:56:00 GMT 2005


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.



More information about the Gcc mailing list