Albert Faber schrieb am Son, 17 Sep 2000:
> Robert,
> So if i have the following piece of code
>
> int my_signed= -1;
> unsigned int my_unsigned=10;
>
> if (my_signed>my_unsigned)
> printf("my_singed > my_unsigned\n");
> else
> printf("my_singed is <= my_unsigned\n");
>
> It should print: "my_singed > my_unsigned\n" according to your implicit
> casting rules, which can cause horrible unexpected run-time problems also.
yes, it does!
> Thus in this situation you have to assert that my_signed is >=0. The normal
> practise will be that it is far more likely that my_signed <0 than
> my_unsigned>MAX_INT
>
> Albert
Albert you are right, but this shows that it is necessary to
be resolved, not casted.
Ciao Robert
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )