Commit 635f95d5 authored by unknown's avatar unknown

Portability fix. Why not to use UINT_MAX32 here?

parent c836c59d
...@@ -1860,9 +1860,9 @@ int Field_long::store(double nr) ...@@ -1860,9 +1860,9 @@ int Field_long::store(double nr)
set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
error= 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); set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
error= 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