From: Sascha Schumann Date: Sun, 17 Aug 2003 13:57:53 +0000 (+0000) Subject: The integer timeout is cast to a void *, passed to this function, and X-Git-Tag: RELEASE_0_7~605 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6b45266d232cb0fa4c63406e6d70cec2eb96ea5;p=php The integer timeout is cast to a void *, passed to this function, and cast back. Add a cast to (long) to quiet the compiler --- diff --git a/ext/sqlite/libsqlite/src/main.c b/ext/sqlite/libsqlite/src/main.c index e2d51d87df..648a9ea426 100644 --- a/ext/sqlite/libsqlite/src/main.c +++ b/ext/sqlite/libsqlite/src/main.c @@ -764,7 +764,8 @@ static int sqliteDefaultBusyCallback( #if SQLITE_MIN_SLEEP_MS==1 int delay = 10; int prior_delay = 0; - int timeout = (int)Timeout; + /* We seem to be called by a generic cb mechanism which passes void ptrs */ + int timeout = (int)(long)Timeout; int i; for(i=1; i timeout ){ return 0; }