Skip to content

Commit 79b4173

Browse files
author
Jean-Pierre Mouilleseaux
committed
fix build failure on bad type assignment, issue robbiehanson#124
the internal class AsyncReceivePacket, has an ivar: NSMutableData *buffer; which in practice is never mutated and the only assignments are via ummutable NSData -- clang with the error level cracked up since at least the Lion release has choked on this. the simple fix is to change the defined type to match the assignments. http://code.google.com/p/cocoaasyncsocket/issues/detail?id=124
1 parent fe662b3 commit 79b4173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RunLoop/AsyncUdpSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ @interface AsyncReceivePacket : NSObject
165165
@public
166166
NSTimeInterval timeout;
167167
long tag;
168-
NSMutableData *buffer;
168+
NSData *buffer;
169169
NSString *host;
170170
UInt16 port;
171171
}

0 commit comments

Comments
 (0)