File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ static inline BOOL GCDWebServerIsValidByteRange(NSRange range) {
188188}
189189
190190static inline NSError * GCDWebServerMakePosixError (int code) {
191- return [NSError errorWithDomain: NSPOSIXErrorDomain code: code userInfo: @{NSLocalizedDescriptionKey : [NSString stringWithUTF8String: strerror (code)]}];
191+ return [NSError errorWithDomain: NSPOSIXErrorDomain code: code userInfo: @{NSLocalizedDescriptionKey : ( NSString *) [NSString stringWithUTF8String: strerror (code)]}];
192192}
193193
194194extern void GCDWebServerInitializeFunctions ();
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ - (GCDWebServerResponse*)listDirectory:(GCDWebServerRequest*)request {
254254 [array addObject: @{
255255 @" path" : [relativePath stringByAppendingPathComponent: item],
256256 @" name" : item,
257- @" size" : [attributes objectForKey: NSFileSize ]
257+ @" size" : ( NSNumber *) [attributes objectForKey: NSFileSize ]
258258 }];
259259 } else if ([type isEqualToString: NSFileTypeDirectory ]) {
260260 [array addObject: @{
You can’t perform that action at this time.
0 commit comments