Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix of warning #37

Merged
merged 1 commit into from

2 participants

@ivira

Hello,

I use fmdb with SQLITE_HAS_CODEC set and get annoying type cast warnings. Here is the simple fix.

Thanks

@ccgus ccgus merged commit be9cbd1 into from
@ccgus
Owner

Thanks for that! I already had it fixed on a branch, but hadn't gotten around to it on the mainline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 22, 2011
  1. @ivira
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.