mirror of
https://github.com/darlinghq/fmdb.git
synced 2025-02-18 12:47:44 +00:00
Merge pull request #352 from harukizaemon/patch-1
Update FMDatabase.m to fix implicit signedness conversion
This commit is contained in:
commit
47a544bb8d
@ -231,7 +231,7 @@ static int FMDBDatabaseBusyHandler(void *f, int count) {
|
||||
NSTimeInterval delta = [NSDate timeIntervalSinceReferenceDate] - (self->_startBusyRetryTime);
|
||||
|
||||
if (delta < [self maxBusyRetryTimeInterval]) {
|
||||
int requestedSleepInMillseconds = arc4random_uniform(50) + 50;
|
||||
int requestedSleepInMillseconds = (int) arc4random_uniform(50) + 50;
|
||||
int actualSleepInMilliseconds = sqlite3_sleep(requestedSleepInMillseconds);
|
||||
if (actualSleepInMilliseconds != requestedSleepInMillseconds) {
|
||||
NSLog(@"WARNING: Requested sleep of %i milliseconds, but SQLite returned %i. Maybe SQLite wasn't built with HAVE_USLEEP=1?", requestedSleepInMillseconds, actualSleepInMilliseconds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user