[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test.cc:50: warning: comparison is always false due to limited range
From: |
Docume |
Subject: |
Re: test.cc:50: warning: comparison is always false due to limited range of data range? |
Date: |
Thu, 22 Aug 2002 18:03:30 +0200 (CEST) |
Yes, I fixed it now. Sorry for the stupid mistake.
On Thu, 22 Aug 2002, Thomas E. Dickey wrote:
> On Thu, 22 Aug 2002, Docume wrote:
>
> > I have...
> >
> > char c = getch ();
> ^^^ (should be 'int', not 'char')
>
> > if (c == KEY_F(1))
> > {
> > char pulsa[]="Pulsa F1 para continuar...";
> > mvwprintw(win,(maxx+4),(maxx-strlen(pulsa))/2,"%s",pulsa);
> > }
> >
> > when I try to compile I see this error...
> > test.cc:50: warning: comparison is always false due to limited range of
> > data range
>
>