C kerdes

Babrian Viktor v at renyi.hu
Wed Apr 28 17:11:09 CEST 2004


> Mi lehet ebben a buktató, hogy a fordító warning-ol ? :
>
> #define     DINPUT_RANGE_LOW        0x00;
>
> if (addr  >=  DINPUT_RANGE_LOW)    rv = TRUE ;
>
> Warning[Pe186]: pointless comparison of unsigned integer with zero
gondolom az addr valtozo elojel nelkuli, igy mindig nagyobb vagy egyenlo,
mint 0, ezert felesleges az osszehasonlitas.

Viktor




More information about the Elektro mailing list