diff options
author | Sascha Schumann <sas@php.net> | 2003-08-17 13:57:53 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-08-17 13:57:53 +0000 |
commit | e6b45266d232cb0fa4c63406e6d70cec2eb96ea5 (patch) | |
tree | bee4d54d37e55fa409ba0d43dd393ce00794041f /ext/sqlite/libsqlite/src | |
parent | 1f722edd1c28264159f5665e7b169d4a49d85bf2 (diff) | |
download | php-git-e6b45266d232cb0fa4c63406e6d70cec2eb96ea5.tar.gz |
The integer timeout is cast to a void *, passed to this function, and
cast back.
Add a cast to (long) to quiet the compiler
Diffstat (limited to 'ext/sqlite/libsqlite/src')
-rw-r--r-- | ext/sqlite/libsqlite/src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
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<count; i++){ @@ -783,7 +784,7 @@ static int sqliteDefaultBusyCallback( sqliteOsSleep(delay); return 1; #else - int timeout = (int)Timeout; + int timeout = (int)(long)Timeout; if( (count+1)*1000 > timeout ){ return 0; } |