Skip to content

Commit c54f193

Browse files
committed
Fixing a compiler missinterpretation of an id type
Closing #120
1 parent e1da4dc commit c54f193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OAuth2Client/NXOAuth2PostBodyPart.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ - (id)initWithName:(NSString *)name content:(id)content;
3939
} else if ([content isKindOfClass:[NSNumber class]]) {
4040
return [self initWithName:name stringContent:[content stringValue]];
4141
} else if ([content isKindOfClass:[NSURL class]] && [content isFileURL]) {
42-
return [self initWithName:name fileContent:[content path]];
42+
return [self initWithName:name fileContent:[(NSURL *)content path]];
4343
} else if ([content isKindOfClass:[NSData class]]) {
4444
return [self initWithName:name dataContent:content];
4545
} else if ([content isKindOfClass:[NXOAuth2FileStreamWrapper class]]) {

0 commit comments

Comments
 (0)