bug-guile
[Top][All Lists]
Advanced

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

Re: More problems on HP-UX ... 6


From: Kevin Ryde
Subject: Re: More problems on HP-UX ... 6
Date: Sat, 01 May 2004 09:27:07 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Andreas Vögele <address@hidden> writes:
>
> Yes, but my German copy of "Programming in C, 2nd ed" says in section
> A.6.1: "A character [...] can be used everywhere in an expression
> where an integer object is required. [...]". And according to section
> A.7.3, subscript array references are expressions.

gcc being overly enthusiastic about warnings I suppose.

> Since the build only aborts if --enable-maintainer-mode, i.e. -Werror,
> is enabled I'd probably keep the "char" values. BTW, I use only one
> cast to fix this problem (in backtrace.c). In numbers.c I  changed the
> type of the variables to "int".

That would also work, but you do need to cast through unsigned char,
so 8-bit char values don't become negative ints, which are not
accepted by c99 ctype.h (though glibc is forgiving of them).




reply via email to

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