Permalink
Browse files

Merge pull request #37 from ivira/master

Fix of warning when using sqlite with SQLITE_HAS_CODEC
  • Loading branch information...
2 parents 606b29d + 63b12e2 commit be9cbd1bfa3bd16914cfef75cb05053b80f41b24 @ccgus ccgus committed Nov 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/FMDatabase.m
View
@@ -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 be9cbd1

Please sign in to comment.