mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Do not attempt to convert an oversized floating point value into an integer.
FossilOrigin-Name: 6c4fc8385ee22516e0b87fb647327ee7d1a564040ebe2a4d66fc999ef2908df2
This commit is contained in:
@@ -314,7 +314,9 @@ static VdbeCursor *allocateCursor(
|
||||
** return false.
|
||||
*/
|
||||
static int alsoAnInt(Mem *pRec, double rValue, i64 *piValue){
|
||||
i64 iValue = (double)rValue;
|
||||
i64 iValue;
|
||||
if( rValue>(double)LARGEST_INT64 || rValue<(double)SMALLEST_INT64 ) return 0;
|
||||
iValue = (double)rValue;
|
||||
if( sqlite3RealSameAsInt(rValue,iValue) ){
|
||||
*piValue = iValue;
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user