1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Additional fix for #13573

This commit is contained in:
holyfoot@deer.(none)
2005-11-02 18:46:13 +04:00
parent 6b5c422fe1
commit 4eea84268b

View File

@@ -1986,8 +1986,12 @@ int decimal_mul(decimal_t *from1, decimal_t *from2, decimal_t *to)
carry+=hi; carry+=hi;
} }
for (; carry; buf0--) for (; carry; buf0--)
{
if (buf0 < to->buf)
return E_DEC_OVERFLOW;
ADD(*buf0, *buf0, 0, carry); ADD(*buf0, *buf0, 0, carry);
} }
}
/* Now we have to check for -0.000 case */ /* Now we have to check for -0.000 case */
if (to->sign) if (to->sign)