Skip to content
Browse files

Fixed cast warnings: explicitly cast strlen result to int

  • Loading branch information...
1 parent 606b29d commit 63b12e2c5ccbe8243ce08ccf1e417fa30bd11a38 @ivira ivira committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/FMDatabase.m
View
4 src/FMDatabase.m
@@ -178,7 +178,7 @@ - (BOOL)rekey:(NSString*)key {
return NO;
}
- int rc = sqlite3_rekey(db, [key UTF8String], strlen([key UTF8String]));
+ int rc = sqlite3_rekey(db, [key UTF8String], (int)strlen([key UTF8String]));
if (rc != SQLITE_OK) {
NSLog(@"error on rekey: %d", rc);
@@ -197,7 +197,7 @@ - (BOOL)setKey:(NSString*)key {
return NO;
}
- int rc = sqlite3_key(db, [key UTF8String], strlen([key UTF8String]));
+ int rc = sqlite3_key(db, [key UTF8String], (int)strlen([key UTF8String]));
return (rc == SQLITE_OK);
#else

0 comments on commit 63b12e2

Please sign in to comment.
Something went wrong with that request. Please try again.