Browse Source

Added some casts to keep the compiler from complaining.

ccgus 12 years ago
parent
commit
4bd679c292
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/FMDatabase.m

+ 2 - 2
src/FMDatabase.m

@@ -665,7 +665,7 @@ - (FMResultSet *)executeQuery:(NSString *)sql withArgumentsInArray:(NSArray*)arr
             
         while (idx < queryCount) {
             
-            if (arrayArgs && idx < [arrayArgs count]) {
+            if (arrayArgs && idx < (int)[arrayArgs count]) {
                 obj = [arrayArgs objectAtIndex:(NSUInteger)idx];
             }
             else if (args) {
@@ -859,7 +859,7 @@ - (BOOL)executeUpdate:(NSString*)sql error:(NSError**)outErr withArgumentsInArra
         
         while (idx < queryCount) {
             
-            if (arrayArgs && idx < [arrayArgs count]) {
+            if (arrayArgs && idx < (int)[arrayArgs count]) {
                 obj = [arrayArgs objectAtIndex:(NSUInteger)idx];
             }
             else if (args) {