nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] (un)signed char in files.c


From: Jordi Mallach
Subject: Re: [Nano-devel] (un)signed char in files.c
Date: Tue, 9 Apr 2002 16:54:44 +0200
User-agent: Mutt/1.3.28i

On Sun, Apr 07, 2002 at 12:40:33PM +1000, Ken Tyler wrote:
> files.c: In function `read_file':
> files.c:197: warning: comparison is always true due to limited range of  data 
> type
> 
> 197     if (!ISSET(NO_CONVERT) && input >= 0 && input <= 31
>                                         ^^^^
> because chars are unsigned on PowerPC (Don't ask, I have no idea).

fwiw, here's some Debian post about this problem. I had to fix gtetrinet
a while ago. It affects arm, ppc and s390.

http://lists.debian.org/debian-devel-announce/2002/debian-devel-announce-200201/msg00008.html

> What to do :
> a)    Make input a signed char

According to s390 porters, this is the way to go.

Jordi
-- 
Jordi Mallach PĂ©rez || address@hidden || Rediscovering Freedom,
   aka Oskuro in    || address@hidden      || Using Debian GNU/Linux
 Reinos de Leyenda  || address@hidden          || http://debian.org

http://sindominio.net  GnuPG public information:      pub  1024D/917A225E 
telnet pusa.uv.es 23   73ED 4244 FD43 5886 20AC  2644 2584 94BA 917A 225E

Attachment: pgpRVV0hhhVEx.pgp
Description: PGP signature


reply via email to

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