Skip to content

Commit

Permalink
Silence integer precision warning
Browse files Browse the repository at this point in the history
When building on x86_64, statusCode is not an int.  Using NSInteger here will work on all architectures.
  • Loading branch information
Matt Massicotte authored and pkyeck committed Feb 23, 2013
1 parent 9e4d5cf commit 707d80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SocketIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ - (void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLRespo
{
// check for server status code (http://gigliwood.com/weblog/Cocoa/Q__When_is_an_conne.html)
if ([response respondsToSelector:@selector(statusCode)]) {
int statusCode = [((NSHTTPURLResponse *)response) statusCode];
NSInteger statusCode = [((NSHTTPURLResponse *)response) statusCode];
DEBUGLOG(@"didReceiveResponse() %i", statusCode);

if (statusCode >= 400) {
Expand Down

0 comments on commit 707d80d

Please sign in to comment.