diff options
author | danielk1977 <danielk1977@noemail.net> | 2009-03-23 04:33:32 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2009-03-23 04:33:32 +0000 |
commit | bc73971db6162bf60d775775b180cea06615b29c (patch) | |
tree | 3e9bd43e05e6924e8b5147ffc625338472c40d9f /src/main.c | |
parent | ca18d20fd69801f8dcf4693fcfb5fb22d65e9746 (diff) | |
download | sqlite-bc73971db6162bf60d775775b180cea06615b29c.tar.gz sqlite-bc73971db6162bf60d775775b180cea06615b29c.zip |
Use the ROUND8() macro to round an integer up to the nearest multiple of 8 and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372)
FossilOrigin-Name: db1d4d2f5083adf5438c7f387b115180800e7bd9
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 5eddc02e6..072e14e07 100644 --- a/src/main.c +++ b/src/main.c @@ -14,7 +14,7 @@ ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.533 2009/03/19 18:51:07 danielk1977 Exp $ +** $Id: main.c,v 1.534 2009/03/23 04:33:32 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -404,12 +404,12 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){ sz = 0; pStart = 0; }else if( pBuf==0 ){ - sz = (sz + 7)&~7; + sz = ROUND8(sz); sqlite3BeginBenignMalloc(); pStart = sqlite3Malloc( sz*cnt ); sqlite3EndBenignMalloc(); }else{ - sz = sz&~7; + sz = ROUNDDOWN8(sz); pStart = pBuf; } db->lookaside.pStart = pStart; |