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

Another micro-optimization in accessPayload(). Slightly smaller and faster.

FossilOrigin-Name: c012619b65d70b4ef6cf33532ef57d7f8ba42d74
This commit is contained in:
drh
2017-01-27 01:25:00 +00:00
parent cdf360a0d5
commit 6ee610bfc0
3 changed files with 9 additions and 9 deletions

View File

@@ -4617,16 +4617,16 @@ static int accessPayload(
}
}
amt -= a;
if( amt==0 ) return rc;
pBuf += a;
}
if( amt==0 ) break;
if( rc ) break;
iIdx++;
}
}
if( rc==SQLITE_OK && amt>0 ){
return SQLITE_CORRUPT_BKPT;
return SQLITE_CORRUPT_BKPT; /* Overflow chain ends prematurely */
}
return rc;
}