mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
A fix. Why didn't we use UINT_MAX32?
This commit is contained in:
@@ -1863,9 +1863,9 @@ int Field_long::store(double nr)
|
|||||||
res=0;
|
res=0;
|
||||||
error= 1;
|
error= 1;
|
||||||
}
|
}
|
||||||
else if (nr > (double) (ulong) ~0L)
|
else if (nr > (double) UINT_MAX32)
|
||||||
{
|
{
|
||||||
res=(int32) (uint32) ~0L;
|
res= UINT_MAX32;
|
||||||
error= 1;
|
error= 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user