This is the mail archive of the gcc-bugs@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: c++/6568: g++3 (3.0.2) misinterpreting single byte hex constants


Brian Ceccarelli wrote:-

>    i = 0;
>    n = (-1);
> 
>    printf("sizeof(i) = %d\n", sizeof i);
>    printf("sizeof(n) = %d\n", sizeof n);
> 
>    if (n == 0xFF)
>       printf("Yes.  n = 0x%x\n", n);
>    else
>       printf("No.  n = 0x%x\n", n);

Please explain why your test should give "Yes".  I think
"No" is correct.

Neil.


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