summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-09-28 14:12:44 +0300
committerunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-09-28 14:12:44 +0300
commite57abdc754d9e280dfeeb722461a3a0184aa935c (patch)
tree318b9b3cd6b08bc224ade4693a05f459d972396a /strings
parenta5dd3d5d8f8e67cb74403f8265b9c61daf9d5ccd (diff)
downloadmariadb-git-e57abdc754d9e280dfeeb722461a3a0184aa935c.tar.gz
Added a cast. Fix for Metrowerks compiler.
Diffstat (limited to 'strings')
-rw-r--r--strings/decimal.c2
1 files changed, 1 insertions, 1 deletions
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;