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

Use putVarint32() instead of putVarint() for a quantity that can never

exceed 2GiB - 1.

FossilOrigin-Name: 6996fb34445adedf463b66ed1f339ee1f27ce6e5
This commit is contained in:
drh
2013-12-09 00:47:11 +00:00
parent 59bf00cb54
commit 7599d4aa44
3 changed files with 8 additions and 8 deletions

View File

@@ -5543,7 +5543,7 @@ static int fillInCell(
nHeader += 4;
}
if( pPage->hasData ){
nHeader += putVarint(&pCell[nHeader], nData+nZero);
nHeader += putVarint32(&pCell[nHeader], nData+nZero);
}else{
nData = nZero = 0;
}