Skip to content

Commit c5f37b9

Browse files
committed
Conditional compilation macros were backwards. This was checking the SDK version and respecting the deployment target. This meant that strongToStrongObjectsMapTable was getting called on 10.7 and crashing.
1 parent 8baf085 commit c5f37b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FsprgEmbeddedStore/FsprgEmbeddedStoreController.m

Lines changed: 2 additions & 2 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]];

0 commit comments

Comments
 (0)