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

Fix a harmless compiler warning.

FossilOrigin-Name: 5ace870d3ac3e9eb29cb4602c9036873adbcb99d
This commit is contained in:
drh
2016-03-22 15:25:16 +00:00
parent 0a2f2b546a
commit c5e7f94494
3 changed files with 9 additions and 9 deletions

View File

@@ -4473,7 +4473,7 @@ static int accessPayload(
assert( offset+amt <= pCur->info.nPayload );
assert( aPayload > pPage->aData );
if( (aPayload - pPage->aData) > (pBt->usableSize - pCur->info.nLocal) ){
if( (uptr)(aPayload - pPage->aData) > (pBt->usableSize - pCur->info.nLocal) ){
/* Trying to read or write past the end of the data is an error. The
** conditional above is really:
** &aPayload[pCur->info.nLocal] > &pPage->aData[pBt->usableSize]