diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-20 17:23:53 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-20 17:23:53 +0000 |
commit | c6fdac18a1388334f3b1f08285ae371061e37bdb (patch) | |
tree | 3b138d41a30ea67a855978d48f723b1660b655d4 /libdecnumber | |
parent | ceebc884c6762fb81420968d84b3659fee018f38 (diff) | |
download | gcc-c6fdac18a1388334f3b1f08285ae371061e37bdb.tar.gz |
* decNumber.c (decStrEq): Cast operands to int before calling
tolower to avoid compilation warnings on Tru64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libdecnumber')
-rw-r--r-- | libdecnumber/ChangeLog | 5 | ||||
-rw-r--r-- | libdecnumber/decNumber.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index d4bb98418a1..f7368a44c34 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,8 @@ +2005-12-20 Roger Sayle <roger@eyesopen.com> + + * decNumber.c (decStrEq): Cast operands to int before calling + tolower to avoid compilation warnings on Tru64. + 2005-12-05 Ben Elliston <bje@au.ibm.com> * Makefile.in (clean): Remove stray reference to libcpp.a. diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c index 28a4ea1c6e4..0625e9f2541 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 */ |