aboutsummaryrefslogtreecommitdiff
path: root/src/test_wsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_wsd.c')
-rw-r--r--src/test_wsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test_wsd.c b/src/test_wsd.c
index a7fad263a..a5d10a71f 100644
--- a/src/test_wsd.c
+++ b/src/test_wsd.c
@@ -14,7 +14,7 @@
** sqlite3_wsd_init() and sqlite3_wsd_find() functions required if the
** SQLITE_OMIT_WSD symbol is defined at build time.
**
-** $Id: test_wsd.c,v 1.3 2008/10/07 15:25:49 drh Exp $
+** $Id: test_wsd.c,v 1.4 2009/03/23 04:33:33 danielk1977 Exp $
*/
#if defined(SQLITE_OMIT_WSD) && defined(SQLITE_TEST)
@@ -69,7 +69,7 @@ void *sqlite3_wsd_find(void *K, int L){
/* If no entry for K was found, create and populate a new one. */
if( !pVar ){
- int nByte = (sizeof(ProcessLocalVar) + L + 7)&~7;
+ int nByte = ROUND8(sizeof(ProcessLocalVar) + L);
assert( pGlobal->nFree>=nByte );
pVar = (ProcessLocalVar *)pGlobal->pFree;
pVar->pKey = K;