[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Re: signedness problems
From: |
Colin Watson |
Subject: |
Re: [Groff] Re: signedness problems |
Date: |
Thu, 3 Jul 2003 17:31:04 +0100 |
User-agent: |
Mutt/1.3.28i |
On Thu, Jul 03, 2003 at 09:12:29AM +0200, Werner LEMBERG wrote:
> > grotty in 1.19 doesn't compile on platforms where char is by
> > default unsigned; the attached patch fixes this. Please
> > commit it to the groff CVS repository.
>
> Thanks for reporting this.
>
> Since `char' is always signed in groff, isn't there another
> possibility to fix this? I've thought of a configure test which sets
> the appropriate compiler flag. autoconf provides the macro
> AC_C_CHAR_UNSIGNED, defining __CHAR_UNSIGNED__; would the following do
> the right thing in src/include/lib.h (and some other places for code
> written in C instead of C++)?
Or just use -fsigned-char, maybe?
--
Colin Watson address@hidden