Skip to content

Commit

Permalink
Fix compiler warning when building EncodingLabeler in Xcode 8.
Browse files Browse the repository at this point in the history
Fixes nolanw#71
  • Loading branch information
nolanw committed Nov 4, 2016
1 parent 592f560 commit 509e2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/EncodingLabeler.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
int main(void) { @autoreleasepool
{
static NSString * const EncodingLabelsURL = @"https://encoding.spec.whatwg.org/encodings.json";
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:EncodingLabelsURL]];
NSData *data = [NSData dataWithContentsOfURL:(NSURL *)[NSURL URLWithString:EncodingLabelsURL]];
if (!data) {
NSLog(@"could not download encoding labels JSON");
return 1;
Expand Down

0 comments on commit 509e2f2

Please sign in to comment.