From: Roger Sayle Date: Tue, 20 Dec 2005 17:23:53 +0000 (+0000) Subject: decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilat... X-Git-Tag: releases/gcc-4.2.0~5211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e739d00c8e29e8451be775cfa6171f47c175cd8;p=thirdparty%2Fgcc.git decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilation warnings on Tru64. * decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilation warnings on Tru64. From-SVN: r108858 --- diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index d4bb98418a1e..f7368a44c347 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,8 @@ +2005-12-20 Roger Sayle + + * decNumber.c (decStrEq): Cast operands to int before calling + tolower to avoid compilation warnings on Tru64. + 2005-12-05 Ben Elliston * Makefile.in (clean): Remove stray reference to libcpp.a. diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c index 28a4ea1c6e48..0625e9f2541b 100644 --- a/libdecnumber/decNumber.c +++ b/libdecnumber/decNumber.c @@ -5445,7 +5445,7 @@ decStrEq (const char *str1, const char *str2) } else { - if (tolower (*str1) != tolower (*str2)) + if (tolower ((int) *str1) != tolower ((int) *str2)) return 0; } } /* stepping */