summaryrefslogtreecommitdiffstats
path: root/lib/libsqlite3/tool/lemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsqlite3/tool/lemon.c')
-rw-r--r--lib/libsqlite3/tool/lemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libsqlite3/tool/lemon.c b/lib/libsqlite3/tool/lemon.c
index c3e612b068e..5d969953354 100644
--- a/lib/libsqlite3/tool/lemon.c
+++ b/lib/libsqlite3/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: