Commit 8ab37bbd authored by Alexander Kuleshov's avatar Alexander Kuleshov Committed by Sergey Vojtovich

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.
parent 990289a7
...@@ -288,7 +288,7 @@ int my_decimal_set_zero(my_decimal *d) ...@@ -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, 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). (and decimal_make_zero is a macro, rather than a funcion).
*/ */
decimal_make_zero(static_cast<decimal_t*>(d)); decimal_make_zero(static_cast<decimal_t*>(d));
......
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