Added a cast. Fix for Metrowerks compiler.

parent acdc193a
...@@ -1033,7 +1033,7 @@ int decimal2ulonglong(decimal_t *from, ulonglong *to) ...@@ -1033,7 +1033,7 @@ int decimal2ulonglong(decimal_t *from, ulonglong *to)
{ {
ulonglong y=x; ulonglong y=x;
x=x*DIG_BASE + *buf++; 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; *to=y;
return E_DEC_OVERFLOW; return E_DEC_OVERFLOW;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment