decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilat...
authorRoger Sayle <roger@eyesopen.com>
Tue, 20 Dec 2005 17:23:53 +0000 (17:23 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 20 Dec 2005 17:23:53 +0000 (17:23 +0000)
* decNumber.c (decStrEq): Cast operands to int before calling
tolower to avoid compilation warnings on Tru64.

From-SVN: r108858

libdecnumber/ChangeLog
libdecnumber/decNumber.c

index d4bb98418a1e5bba6d314f982a14a578a0e968ac..f7368a44c347bd75c276ca1456b9de8c7c1ec340 100644 (file)
@@ -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.
index 28a4ea1c6e484d92464d0e54ae2a19f6356ce100..0625e9f2541b442ffc2875f264e3ecd6e33224bc 100644 (file)
@@ -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 */