1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

The integer timeout is cast to a void *, passed to this function, and

cast back.

Add a cast to (long) to quiet the compiler
This commit is contained in:
Sascha Schumann
2003-08-17 13:57:53 +00:00
parent 1f722edd1c
commit e6b45266d2
+3 -2
View File
@@ -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;
}