Re: Some help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergio,

  An unsigned char has the range 0 - 255 with 256 possible values. 
Any value that you assign 'i' will always be within that range.

Corey

On 8/22/05, Sergio Bacchi <sergio_bacchi@xxxxxxxxxxxx> wrote:
> Hi!
> I am in trouble with a compilation.
> In the loop "for" i receive the warning:
> .ui/../visuhexaForm.ui.h:208: warning: comparison is always true due to
> limited range of data type
> 
> The program fragment is:
> 
> void visuhexaForm::pgSeguinte()
> {
>          uchar i;
> 
>          for ( i = 0; i <= 256; i++ ) buf[i] = 0;//(line 208)
>          if ( tamanho - atual != 0 ) pagina( atual );
>          else seguintePushButton->setDown( 1 );
> }
> 
> I don't know what to do.
> 
> Thank you.
> Regards
> Sergio.
> 
> 
> 
> 
> 
> 
> _______________________________________________________
> Yahoo! Acesso Grátis - Internet rápida e grátis.
> Instale o discador agora! http://br.acesso.yahoo.com/
> 
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux