C kerdes

Uir Man uir at dpg.hu
Thu Apr 29 10:27:45 CEST 2004


Bali Zoltan  <eltexto at freemail.hu> 2004.04.28. 16:47:37 +2h-kor írta:

> Sziasztok !
> 
> 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
> 
> 
> Üdv.   Zoli


Kell a 0x00 utan a ; jel?
Mert ilyenkor igy helyetesiti be szerintem:

if (addr  >=  0x00;)    rv = TRUE ;
ez viszont rossz.
Igy mar jo lesz::

#define     DINPUT_RANGE_LOW        0x00
-- 
UIR



More information about the Elektro mailing list