Skip to content

Commit 1bcbfbd

Browse files
committed
Fix building tests.
1 parent b07d7af commit 1bcbfbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/HTMLTreeEnumeratorTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (HTMLNode *)rootNodeWithString:(NSString *)string
4343
{
4444
HTMLStringEncoding encoding = (HTMLStringEncoding){ .encoding = NSUTF8StringEncoding, .confidence = Certain };
4545
HTMLDocument *document = [[HTMLParser alloc] initWithString:string encoding:encoding context:nil].document;
46-
HTMLElement *body = document.rootElement.children.lastObject;
46+
HTMLElement *body = (HTMLElement *)document.rootElement.children.lastObject;
4747
return body.children[0];
4848
}
4949

0 commit comments

Comments
 (0)