1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Convert several 5-year-old and older NEVER() macros into assert().

FossilOrigin-Name: ed54c14ea8a72d69d69e0c0d7f6936f54efc04c2
This commit is contained in:
drh
2015-06-30 01:25:52 +00:00
parent 207c817365
commit 98ef0f6c48
5 changed files with 16 additions and 25 deletions

View File

@@ -4056,9 +4056,8 @@ case OP_NewRowid: { /* out2 */
assert( pOp->p1>=0 && pOp->p1<p->nCursor );
pC = p->apCsr[pOp->p1];
assert( pC!=0 );
if( NEVER(pC->pCursor==0) ){
/* The zero initialization above is all that is needed */
}else{
assert( pC->pCursor!=0 );
{
/* The next rowid or record number (different terms for the same
** thing) is obtained in a two-step algorithm.
**