Fix of warning #37

Merged
merged 1 commit into from Nov 22, 2011
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
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