mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-21 11:13:54 +03:00
Remove code in the round() SQL function that became unreachable due to
the optimization of check-in [e95138f5f4febde5] FossilOrigin-Name: b141bae3f6d16c0ebb59dac9b02086a4370839e71ade34004f647b09b1083d1d
This commit is contained in:
@@ -397,10 +397,7 @@ static void roundFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
|
||||
sqlite3_result_error_nomem(context);
|
||||
return;
|
||||
}
|
||||
if( sqlite3AtoF(zBuf, &r, sqlite3Strlen30(zBuf), SQLITE_UTF8)<=0 ){
|
||||
assert( sqlite3_strglob("*Inf", zBuf)==0 );
|
||||
r = zBuf[0]=='-' ? -HUGE_VAL : +HUGE_VAL;
|
||||
}
|
||||
sqlite3AtoF(zBuf, &r, sqlite3Strlen30(zBuf), SQLITE_UTF8);
|
||||
sqlite3_free(zBuf);
|
||||
}
|
||||
sqlite3_result_double(context, r);
|
||||
|
||||
Reference in New Issue
Block a user