mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 20:25:32 +02:00
Added a cast. Fix for Metrowerks compiler.
This commit is contained in:
parent
a5dd3d5d8f
commit
e57abdc754
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue