15
0
forked from pool/python-apsw
Files
python-apsw/sqlite-fix_pointer_casts.patch

21 lines
650 B
Diff

--- sqlite3.c.orig 2010-08-09 17:30:07.000000000 +0200
+++ sqlite3.c 2010-08-09 17:30:56.000000000 +0200
@@ -570,6 +570,8 @@
#define _SQLITE3_H_
#include <stdarg.h> /* Needed for the definition of va_list */
+#include <stdint.h> /* Needed for intptr_t */
+
/*
** Make sure we can call this stuff from C++.
*/
@@ -117745,7 +117747,7 @@
Rtree *pRtree;
int nDb; /* Length of string argv[1] */
int nName; /* Length of string argv[2] */
- int eCoordType = (int)pAux;
+ intptr_t eCoordType = (intptr_t)pAux;
const char *aErrMsg[] = {
0, /* 0 */