Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 707d80d

Browse files
Matt Massicottepkyeck
authored andcommitted
Silence integer precision warning
When building on x86_64, statusCode is not an int. Using NSInteger here will work on all architectures.
1 parent 9e4d5cf commit 707d80d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SocketIO.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ - (void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLRespo
583583
{
584584
// check for server status code (http://gigliwood.com/weblog/Cocoa/Q__When_is_an_conne.html)
585585
if ([response respondsToSelector:@selector(statusCode)]) {
586-
int statusCode = [((NSHTTPURLResponse *)response) statusCode];
586+
NSInteger statusCode = [((NSHTTPURLResponse *)response) statusCode];
587587
DEBUGLOG(@"didReceiveResponse() %i", statusCode);
588588

589589
if (statusCode >= 400) {

0 commit comments

Comments
 (0)