summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-09-01 21:06:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-09-01 21:06:48 (GMT)
commitabf10a2c0200819f6bb99366220f4c7566c01028 (patch)
tree2eece51c45661594a9f3ef4acc7c91c39a2693ec /3rdParty
parent903f044aea9c7b356c072bc85379d0e9825929d3 (diff)
downloadswift-contrib-abf10a2c0200819f6bb99366220f4c7566c01028.zip
swift-contrib-abf10a2c0200819f6bb99366220f4c7566c01028.tar.bz2
Allow forcing of bundled sqlite, and compile sqlite on OS X
Diffstat (limited to '3rdParty')
-rw-r--r--3rdParty/SQLite/sqlite3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdParty/SQLite/sqlite3.c b/3rdParty/SQLite/sqlite3.c
index 3c7c57f..f11bd5d 100644
--- a/3rdParty/SQLite/sqlite3.c
+++ b/3rdParty/SQLite/sqlite3.c
@@ -288,7 +288,7 @@
* requires the #include of specific headers which differs between
* platforms.
*/
-#define SQLITE_INT_TO_PTR(X) ((void*)&((char*)0)[X])
+#define SQLITE_INT_TO_PTR(X) ((void*)(X))
#define SQLITE_PTR_TO_INT(X) ((int)(((char*)X)-(char*)0))
/*