aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authordrh <>2023-12-18 18:50:47 +0000
committerdrh <>2023-12-18 18:50:47 +0000
commitc4dd6b42ec50d7b176a591d21044d6cd4ebaa782 (patch)
treebc184992ac4ada98c9472d81808cf213404ad0a6 /src/json.c
parentfc76750f616a8ceadc9988de67e065b6e274547a (diff)
downloadsqlite-c4dd6b42ec50d7b176a591d21044d6cd4ebaa782.tar.gz
sqlite-c4dd6b42ec50d7b176a591d21044d6cd4ebaa782.zip
Add NEVER() to an unfalsifiable branch.
FossilOrigin-Name: 9a0c67db366d38a0b0741f6a1ae333cf27cfe6f6b7c6eed94bdec9686f9f9f8a
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index b4b9d8f81..8f7938a23 100644
--- a/src/json.c
+++ b/src/json.c
@@ -3043,7 +3043,7 @@ static int jsonFunctionArgToBlob(
}
case SQLITE_FLOAT: {
double r = sqlite3_value_double(pArg);
- if( sqlite3IsNaN(r) ){
+ if( NEVER(sqlite3IsNaN(r)) ){
jsonBlobAppendNode(pParse, JSONB_NULL, 0, 0);
}else{
int n = sqlite3_value_bytes(pArg);