Skip to content

Commit 257ed94

Browse files
committed
Fixed build warnings
1 parent 4ea0a12 commit 257ed94

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

GCDWebServer/Core/GCDWebServerPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static inline BOOL GCDWebServerIsValidByteRange(NSRange range) {
188188
}
189189

190190
static 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

194194
extern void GCDWebServerInitializeFunctions();

GCDWebUploader/GCDWebUploader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:@{

0 commit comments

Comments
 (0)