1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix comment in my_decimal_set_zero()

which says:

    We need the up-cast here, since my_decimal has sign() member functions,
    which conflicts with decimal_t::size

But decimal_t does not provide `size` field.
This commit is contained in:
Alexander Kuleshov
2018-02-12 00:47:48 +06:00
committed by Sergey Vojtovich
parent 990289a78f
commit 8ab37bbd69

View File

@ -288,7 +288,7 @@ int my_decimal_set_zero(my_decimal *d)
{
/*
We need the up-cast here, since my_decimal has sign() member functions,
which conflicts with decimal_t::size
which conflicts with decimal_t::sign
(and decimal_make_zero is a macro, rather than a funcion).
*/
decimal_make_zero(static_cast<decimal_t*>(d));