cvs: php-src /ext/sqlite/libsqlite/src main.c

From: Date: Sun, 17 Aug 2003 13:57:53 +0000
Subject: cvs: php-src /ext/sqlite/libsqlite/src main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23251@lists.php.net to get a copy of this message
sas Sun Aug 17 09:57:53 2003 EDT Modified files: /php-src/ext/sqlite/libsqlite/src main.c Log: The integer timeout is cast to a void *, passed to this function, and cast back. Add a cast to (long) to quiet the compiler Index: php-src/ext/sqlite/libsqlite/src/main.c diff -u php-src/ext/sqlite/libsqlite/src/main.c:1.3 php-src/ext/sqlite/libsqlite/src/main.c:1.4 --- php-src/ext/sqlite/libsqlite/src/main.c:1.3 Fri Jun 6 18:44:56 2003 +++ php-src/ext/sqlite/libsqlite/src/main.c Sun Aug 17 09:57:53 2003 @@ -14,7 +14,7 @@ ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.3 2003/06/06 22:44:56 wez Exp $ +** $Id: main.c,v 1.4 2003/08/17 13:57:53 sas Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -764,7 +764,8 @@ #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 @@ sqliteOsSleep(delay); return 1; #else - int timeout = (int)Timeout; + int timeout = (int)(long)Timeout; if( (count+1)*1000 > timeout ){ return 0; }

« previous php.cvs (#23251) next »