bug-ncurses
[Top][All Lists]
Advanced

[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: Walter Briscoe
Subject: Re: test.cc:50: warning: comparison is always false due to limited range of data range?
Date: Thu, 22 Aug 2002 16:59:07 +0100
User-agent: Turnpike/6.02-S (<XRTseyVkrexFjzXkqWRNCbMOZN>)

In message <address@hidden>
of Thu, 22 Aug 2002 17:46:22 in , Docume <address@hidden> writes
>I have...
>
>    char c = getch ();
     int c esta mejor - int c is better
>        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
>
>I am using this headers, maybe here is the error:
>#include <iostream>
>#include <ncurses.h>
>#include <string.h>
>#include <stdlib.h> // exit()
>
>What's wrong?
>I am copy the code from ncurses howto.
>
>
>
>_______________________________________________
>Bug-ncurses mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/bug-ncurses

-- 
Walter Briscoe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]