1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Add NEVER() to an unfalsifiable branch.

FossilOrigin-Name: 9a0c67db366d38a0b0741f6a1ae333cf27cfe6f6b7c6eed94bdec9686f9f9f8a
This commit is contained in:
drh
2023-12-18 18:50:47 +00:00
parent fc76750f61
commit c4dd6b42ec
3 changed files with 8 additions and 8 deletions

View File

@@ -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);