diff options
Diffstat (limited to 'Foundation/GTMHTTPServer.m')
-rw-r--r-- | Foundation/GTMHTTPServer.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Foundation/GTMHTTPServer.m b/Foundation/GTMHTTPServer.m index 7887ade..a514842 100644 --- a/Foundation/GTMHTTPServer.m +++ b/Foundation/GTMHTTPServer.m @@ -28,6 +28,7 @@ #import "GTMDebugSelectorValidation.h" #import "GTMGarbageCollection.h" #import "GTMDefines.h" +#import "GTMTypeCasting.h" @interface GTMHTTPServer (PrivateMethods) - (void)acceptedConnectionNotification:(NSNotification *)notification; @@ -283,7 +284,8 @@ startFailed: } - (void)dataAvailableNotification:(NSNotification *)notification { - NSFileHandle *connectionHandle = [notification object]; + NSFileHandle *connectionHandle = GTM_STATIC_CAST(NSFileHandle, + [notification object]); NSMutableDictionary *connDict = [self lookupConnection:connectionHandle]; if (connDict == nil) return; // we are no longer tracking this one |