diff options
author | jani@a193-229-222-105.elisa-laajakaista.fi <> | 2005-09-28 14:12:44 +0300 |
---|---|---|
committer | jani@a193-229-222-105.elisa-laajakaista.fi <> | 2005-09-28 14:12:44 +0300 |
commit | bb57385f5492b6508a32046d3de64e473dca0e86 (patch) | |
tree | 318b9b3cd6b08bc224ade4693a05f459d972396a /strings | |
parent | acdc193a45a7f2952867a3d3f2373dd42e887ef2 (diff) | |
download | mariadb-git-bb57385f5492b6508a32046d3de64e473dca0e86.tar.gz |
Added a cast. Fix for Metrowerks compiler.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/decimal.c | 2 |
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; |