2012-07-08 09:22:54 -04:00
|
|
|
$OpenBSD: patch-Source_NSConnection_m,v 1.3 2012/07/08 13:22:54 sebastia Exp $
|
|
|
|
|
|
|
|
64Bit fixes comparisons to NSNotFound
|
|
|
|
|
|
|
|
--- Source/NSConnection.m.orig Mon Jan 30 12:31:40 2012
|
|
|
|
+++ Source/NSConnection.m Mon Apr 9 14:42:01 2012
|
|
|
|
@@ -1583,7 +1583,7 @@ static NSLock *cached_proxies_gate = nil;
|
|
|
|
GS_M_LOCK(IrefGate);
|
|
|
|
if (IrunLoops != nil)
|
|
|
|
{
|
|
|
|
- unsigned pos = [IrunLoops indexOfObjectIdenticalTo: loop];
|
|
|
|
+ NSUInteger pos = [IrunLoops indexOfObjectIdenticalTo: loop];
|
|
|
|
|
|
|
|
if (pos != NSNotFound)
|
|
|
|
{
|
|
|
|
@@ -2499,7 +2499,7 @@ static NSLock *cached_proxies_gate = nil;
|
2011-04-18 07:54:49 -04:00
|
|
|
NSPortCoder *decoder = nil;
|
|
|
|
NSPortCoder *encoder = nil;
|
|
|
|
NSInvocation *inv = nil;
|
|
|
|
- unsigned seq;
|
|
|
|
+ unsigned seq = 0;
|
|
|
|
|
2011-07-19 02:29:09 -04:00
|
|
|
/* Save this for later */
|
|
|
|
[aRmc decodeValueOfObjCType: @encode(int) at: &seq];
|