From 8ab37bbd696ee418895c0f74222ad0fedf5fe73c Mon Sep 17 00:00:00 2001 From: Alexander Kuleshov Date: Mon, 12 Feb 2018 00:47:48 +0600 Subject: [PATCH] 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. --- sql/my_decimal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/my_decimal.h b/sql/my_decimal.h index 775617dce0f..22800c24338 100644 --- a/sql/my_decimal.h +++ b/sql/my_decimal.h @@ -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(d));