openbsd-ports/x11/gnustep/base/patches/patch-Source_NSConnection_m

25 lines
795 B
Plaintext
Raw Normal View History

$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;
NSPortCoder *decoder = nil;
NSPortCoder *encoder = nil;
NSInvocation *inv = nil;
- unsigned seq;
+ unsigned seq = 0;
/* Save this for later */
[aRmc decodeValueOfObjCType: @encode(int) at: &seq];