Skip to content

Commit e8f77f8

Browse files
author
Ryan Dewell
committed
Merge pull request #8 from ksuther/master
Fixed crash on 10.7 and warning
2 parents 8baf085 + bb19b4c commit e8f77f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FsprgEmbeddedStore/FsprgEmbeddedStoreController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#import "FsprgOrderDocumentRepresentation.h"
1212

1313
// We don't retrieve SSL certificates below OSX 10.6
14-
#define RETRIEVE_SSL_CERTIFICATES defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
14+
#define RETRIEVE_SSL_CERTIFICATES defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
1515

1616

1717
@interface FsprgEmbeddedStoreController (Private)
@@ -47,7 +47,7 @@ - (id) init
4747
[self setDelegate:nil];
4848
[self setStoreHost:nil];
4949
[self setHostCertificates:[NSMutableDictionary dictionary]];
50-
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
50+
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8
5151
[self setConnectionsToRequests:[NSMapTable strongToStrongObjectsMapTable]];
5252
#else
5353
[self setConnectionsToRequests:[NSMapTable mapTableWithStrongToStrongObjects]];
@@ -386,7 +386,7 @@ - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallen
386386

387387
NSMutableArray *certificates = [NSMutableArray arrayWithCapacity:count];
388388
CFIndex idx;
389-
for (idx = 0; idx < count; idx++) {
389+
for (idx = 0; idx < (CFIndex)count; idx++) {
390390
SecCertificateRef certificateRef = SecTrustGetCertificateAtIndex(trustRef, idx);
391391
[certificates addObject:(id)certificateRef];
392392
}

0 commit comments

Comments
 (0)