1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Patch to fix an alignment problem on sparc. Ticket #1234. (CVS 2455)

FossilOrigin-Name: 240cce10d4b9d595a267e392ce322472b10f286d
This commit is contained in:
drh
2005-05-05 18:14:13 +00:00
parent 0405a34d11
commit 8d97f1f141
3 changed files with 12 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.258 2005/05/03 12:30:34 drh Exp $
** $Id: btree.c,v 1.259 2005/05/05 18:14:14 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -3896,6 +3896,10 @@ static int balance_nonroot(MemPage *pPage){
nMaxCells += 1+apOld[i]->nCell+apOld[i]->nOverflow;
}
/* Make nMaxCells a multiple of 2 in order to preserve 8-byte
** alignment */
nMaxCells = (nMaxCells + 1)&~1;
/*
** Allocate space for memory structures
*/