From 8b298de8d7ef2c680974b5c5cebb4b0056969984 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 12 Sep 2012 12:19:31 +0000 Subject: Fix release build warnings. --- Frameworks/PostgresKit/Source/FLXPostgresResult.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Frameworks/PostgresKit/Source/FLXPostgresResult.m') diff --git a/Frameworks/PostgresKit/Source/FLXPostgresResult.m b/Frameworks/PostgresKit/Source/FLXPostgresResult.m index 9fd44d8c..57a26268 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresResult.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresResult.m @@ -25,8 +25,6 @@ #import "FLXPostgresConnection.h" #import "FLXPostgresConnectionTypeHandling.h" -static NSString *FLXPostgresResultError = @"FLXPostgresResultError"; - @interface FLXPostgresResult () - (void)_populateFields; @@ -178,7 +176,7 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError"; for (NSUInteger i = 0; i < _numberOfFields; i++) { - const char *bytes = PQfname(_result, i); + const char *bytes = PQfname(_result, (int)i); if (!bytes) continue; @@ -199,9 +197,9 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError"; if (row >= _numberOfRows || column >= _numberOfFields) return nil; // Check for null - if (PQgetisnull(_result, row, column)) return [NSNull null]; + if (PQgetisnull(_result, (int)row, (int)column)) return [NSNull null]; - FLXPostgresOid type = PQftype(_result, column); + FLXPostgresOid type = PQftype(_result, (int)column); // Get handler for this type id handler = [self _typeHandlerForColumn:column withType:type]; @@ -209,8 +207,8 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError"; if (!handler) { NSLog(@"PostgresKit: Warning: No type handler found for type %d, return NSData.", type); - const void *bytes = PQgetvalue(_result, row, column); - NSUInteger length = PQgetlength(_result, row, column); + const void *bytes = PQgetvalue(_result, (int)row, (int)column); + NSUInteger length = PQgetlength(_result, (int)row, (int)column); if (!bytes || !length) return nil; -- cgit v1.2.3