Skip to content

Commit

Permalink
Merge pull request ccgus#37 from ivira/master
Browse files Browse the repository at this point in the history
Fix of warning when using sqlite with SQLITE_HAS_CODEC
  • Loading branch information
ccgus committed Nov 22, 2011
2 parents 606b29d + 63b12e2 commit be9cbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FMDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit be9cbd1

Please sign in to comment.