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

Remove an unreachable branch. Improvements to comments.

FossilOrigin-Name: c5677ecd5cd2637d92a831ec6bd5b002f8d75626
This commit is contained in:
drh
2016-03-21 00:30:40 +00:00
parent 9f6168b6a3
commit 3cdce92c38
4 changed files with 14 additions and 21 deletions

View File

@@ -192,7 +192,7 @@ static VdbeCursor *allocateCursor(
** be freed lazily via the sqlite3_release_memory() API. This
** minimizes the number of malloc calls made by the system.
**
** Memory cell for cursor 0 is Mem[0]. The rest are allocated from
** The memory cell for cursor 0 is aMem[0]. The rest are allocated from
** the top of the register space. Cursor 1 is at Mem[p->nMem-1].
** Cursor 2 is at Mem[p->nMem-2]. And so forth.
*/
@@ -5643,7 +5643,8 @@ case OP_Program: { /* jump */
** variable nMem (and later, VdbeFrame.nChildMem) to this value.
*/
nMem = pProgram->nMem + pProgram->nCsr;
if( pProgram->nCsr==0 && nMem>0 ) nMem++;
assert( nMem>0 );
if( pProgram->nCsr==0 ) nMem++;
nByte = ROUND8(sizeof(VdbeFrame))
+ nMem * sizeof(Mem)
+ pProgram->nCsr * sizeof(VdbeCursor *)