OSDN Git Service

* decNumber.c (decStrEq): Cast operands to int before calling
[pf3gnuchains/gcc-fork.git] / libdecnumber / decNumber.c
index c2a8980..0625e9f 100644 (file)
@@ -16,8 +16,8 @@
 
    You should have received a copy of the GNU General Public License
    along with GCC; see the file COPYING.  If not, write to the Free
-   Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.  */
+   Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.  */
 
 /* ------------------------------------------------------------------ */
 /* This module comprises the routines for Standard Decimal Arithmetic */
 #include <stdio.h>             /* for printf [if needed] */
 #include <string.h>            /* for strcpy */
 #include <ctype.h>             /* for lower */
+#include "config.h"
 #include "decNumber.h"         /* base number library */
 #include "decNumberLocal.h"    /* decNumber local types, etc. */
 
@@ -5444,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 */