aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-05-03 12:30:33 +0000
committerdrh <drh@noemail.net>2005-05-03 12:30:33 +0000
commitc96d8530ca54c7ec7c6ca52b9e7f01f33f0c4235 (patch)
tree5b626dae6c6eada83cdd9a4e674c8b0574160784 /src/util.c
parent07d183da905fa669eb4d5ce2c570f46a97f728cc (diff)
downloadsqlite-c96d8530ca54c7ec7c6ca52b9e7f01f33f0c4235.tar.gz
sqlite-c96d8530ca54c7ec7c6ca52b9e7f01f33f0c4235.zip
Make sure all data structures have 8-byte alignment - necessary for the
sparc architecture and helpful on other 64-bit platforms. Ticket #1232. Also update some comments in build.c. (CVS 2452) FossilOrigin-Name: d9418851cebc1605d8d62aad7987c0d61a905e81
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 4f1930238..fc1614151 100644
--- a/src/util.c
+++ b/src/util.c
@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
-** $Id: util.c,v 1.132 2005/03/18 14:03:15 drh Exp $
+** $Id: util.c,v 1.133 2005/05/03 12:30:34 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -65,9 +65,11 @@ static int memcnt = 0;
#endif
/*
-** Number of 32-bit guard words
+** Number of 32-bit guard words. This should probably be a multiple of
+** 2 since on 64-bit machines we want the value returned by sqliteMalloc()
+** to be 8-byte aligned.
*/
-#define N_GUARD 1
+#define N_GUARD 2
/*
** Allocate new memory and set it to zero. Return NULL if