diff --git a/src/FMDatabase.m b/src/FMDatabase.m index ad03072c..aeb2f731 100644 --- a/src/FMDatabase.m +++ b/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