aboutsummaryrefslogtreecommitdiff
path: root/tool/lemon.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-04-18 09:59:56 +0000
committerdrh <drh@noemail.net>2012-04-18 09:59:56 +0000
commitd25d692252a90f8e1b34591223391bfd11a44fdc (patch)
tree9428b1df9c0d594f99e23f4ffc01b25d724e69eb /tool/lemon.c
parent374fdce485ab55739dfd307ac00a59ebe8ce8d25 (diff)
downloadsqlite-d25d692252a90f8e1b34591223391bfd11a44fdc.tar.gz
sqlite-d25d692252a90f8e1b34591223391bfd11a44fdc.zip
Fix a typecast problem in lemon that could cause problems on 64-bit machines.
FossilOrigin-Name: 4a5641cc0aa4c49762f4fe73dab4a6612631c0d2
Diffstat (limited to 'tool/lemon.c')
-rw-r--r--tool/lemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lemon.c b/tool/lemon.c
index c3e612b06..5d9699533 100644
--- a/tool/lemon.c
+++ b/tool/lemon.c
@@ -1546,7 +1546,7 @@ int main(int argc, char **argv)
/*
** Return a pointer to the next structure in the linked list.
*/
-#define NEXT(A) (*(char**)(((unsigned long)A)+offset))
+#define NEXT(A) (*(char**)(((char*)A)+offset))
/*
** Inputs: