Fix boundary case for the toreal() SQL function.

FossilOrigin-Name: abe82c634ccda7d62687df5917d18a9d6e411142
This commit is contained in:
mistachkin
2013-08-29 01:01:11 +00:00
parent 312404ef76
commit 60883e5401
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1030,7 +1030,7 @@ static void torealFunc(
case SQLITE_INTEGER: {
i64 iVal = sqlite3_value_int64(argv[0]);
double rVal = (double)iVal;
if( iVal==rVal ){
if( iVal==(i64)rVal ){
sqlite3_result_double(context, rVal);
}
break;