Browse Source

Make last parameter explicitly `long long`, only identified after adding NS_FORMAT_FUNCTION qualifier to method declaration

robertmryan 12 years ago
parent
commit
64d38ac816
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/fmdb.m

+ 1 - 1
src/fmdb.m

@@ -680,7 +680,7 @@ int main (int argc, const char * argv[]) {
     
     {
         FMDBQuickCheck([db executeUpdate:@"create table t5 (a text, b int, c blob, d text, e text)"]);
-        FMDBQuickCheck(([db executeUpdateWithFormat:@"insert into t5 values (%s, %d, %@, %c, %lld)", "text", 42, @"BLOB", 'd', 12345678901234]));
+        FMDBQuickCheck(([db executeUpdateWithFormat:@"insert into t5 values (%s, %d, %@, %c, %lld)", "text", 42, @"BLOB", 'd', 12345678901234ll]));
         
         rs = [db executeQueryWithFormat:@"select * from t5 where a = %s and a = %@ and b = %d", "text", @"text", 42];
         FMDBQuickCheck((rs != nil));