This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix warning in libdecnumber/decNumber.c
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 18 Dec 2005 02:42:25 +0100
- Subject: Re: Fix warning in libdecnumber/decNumber.c
- References: <20051218001309.GA31040@ozlabs.au.ibm.com>
Ben Elliston <bje@au1.ibm.com> writes:
| This patch is needed for bootstrapping on systems that produce a
| warning about subscripting arrays using char, due to their
| implementation of tolower. Okay for the trunk?
Should it not be cast to 'unsigned char'?
In general, uses of most functions in <ctype.h> require cast to
'unsigned char'.
-- Gaby