Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #37 from ivira/master

Fix of warning when using sqlite with SQLITE_HAS_CODEC
  • Loading branch information...
commit be9cbd1bfa3bd16914cfef75cb05053b80f41b24 2 parents 606b29d + 63b12e2
@ccgus authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.