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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user