From bb57385f5492b6508a32046d3de64e473dca0e86 Mon Sep 17 00:00:00 2001
From: "jani@a193-229-222-105.elisa-laajakaista.fi" <>
Date: Wed, 28 Sep 2005 14:12:44 +0300
Subject: [PATCH] Added a cast. Fix for Metrowerks compiler.

---
 strings/decimal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strings/decimal.c b/strings/decimal.c
index 7816f340eef..ce00b9770b3 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -1033,7 +1033,7 @@ int decimal2ulonglong(decimal_t *from, ulonglong *to)
   {
     ulonglong y=x;
     x=x*DIG_BASE + *buf++;
-    if (unlikely(y > (ULONGLONG_MAX/DIG_BASE) || x < y))
+    if (unlikely(y > ((ulonglong) ULONGLONG_MAX/DIG_BASE) || x < y))
     {
       *to=y;
       return E_DEC_OVERFLOW;
-- 
2.30.9