Commit a0710621 authored by Sergei Golubchik's avatar Sergei Golubchik

fix a strict aliasing warning - remove a meaningless cast.

parent faac8db6
...@@ -4192,8 +4192,7 @@ String *Item_dyncol_get::val_str(String *str_result) ...@@ -4192,8 +4192,7 @@ String *Item_dyncol_get::val_str(String *str_result)
case DYN_COL_DECIMAL: case DYN_COL_DECIMAL:
{ {
int res; int res;
int length= int length= decimal_string_size(&val.x.decimal.value);
my_decimal_string_length((const my_decimal*)&val.x.decimal.value);
if (str_result->alloc(length)) if (str_result->alloc(length))
goto null; goto null;
if ((res= decimal2string(&val.x.decimal.value, (char*) str_result->ptr(), if ((res= decimal2string(&val.x.decimal.value, (char*) str_result->ptr(),
......
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