This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix warning in libdecnumber/decNumber.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]