Commit c15b45df authored by ram@gw.mysql.r18.ru's avatar ram@gw.mysql.r18.ru

Portability fix. Why not to use UINT_MAX32 here?

parent 3f741570
......@@ -1860,9 +1860,9 @@ int Field_long::store(double nr)
set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
error= 1;
}
else if (nr > (double) (ulong) ~0L)
else if (nr > (double) UINT_MAX32)
{
res=(int32) (uint32) ~0L;
res= UINT_MAX32;
set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
error= 1;
}
......
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