mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +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:
parent
1f722edd1c
commit
e6b45266d2
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue