Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ccgus/fmdb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAugust "Gus" Mueller <gus@flyingmeat.com>2015-04-03 19:38:22 +0300
committerAugust "Gus" Mueller <gus@flyingmeat.com>2015-04-03 19:38:22 +0300
commit47a544bb8dd8b0275a24bfd194113e478e35b9d7 (patch)
treeb2b1c815daace0ebc31dde255b6c3c41281cc645
parent424c6afedf9ccc11105392bc1e806f321bd04e0f (diff)
parentfc7805386eafaec89aa424a06b5ed8ad085a8604 (diff)
Merge pull request #352 from harukizaemon/patch-1
Update FMDatabase.m to fix implicit signedness conversion
-rw-r--r--src/fmdb/FMDatabase.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmdb/FMDatabase.m b/src/fmdb/FMDatabase.m
index 725c855..a8678e9 100644
--- a/src/fmdb/FMDatabase.m
+++ b/src/fmdb/FMDatabase.m
@@ -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);