aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-02-26 11:43:44 +0000
committerdrh <>2024-02-26 11:43:44 +0000
commitf286ad9211dceab80dc81e9207afdeac80bc777e (patch)
treec12003c0679d3200d776e96f84be31db122042bd /src
parentdfd991c3b947f3d746ee56ba3295acd8074eead2 (diff)
downloadsqlite-f286ad9211dceab80dc81e9207afdeac80bc777e.tar.gz
sqlite-f286ad9211dceab80dc81e9207afdeac80bc777e.zip
Remove a local variable from sqlite3IntFloatCompare() that was being optimized
out anyhow, in order to get back to 100% MC/DC. FossilOrigin-Name: 52b13d6acbb738b9281f7dd44edd6c3c9585d22d98b1951b7059534fbd16fac0
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index fe0dbd6b0..209d02a04 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -4516,17 +4516,15 @@ int sqlite3IntFloatCompare(i64 i, double r){
return (x<r) ? -1 : (x>r);
}else{
i64 y;
- double s;
if( r<-9223372036854775808.0 ) return +1;
if( r>=9223372036854775808.0 ) return -1;
y = (i64)r;
if( i<y ) return -1;
if( i>y ) return +1;
- s = (double)i;
- testcase( doubleLt(s,r) );
- testcase( doubleLt(r,s) );
- testcase( doubleEq(r,s) );
- return (s<r) ? -1 : (s>r);
+ testcase( doubleLt(((double)i),r) );
+ testcase( doubleLt(r,((double)i)) );
+ testcase( doubleEq(r,((double)i)) );
+ return (((double)i)<r) ? -1 : (((double)i)>r);
}
}