Skip to content

Commit c97fa66

Browse files
committed
Add cast to keep compiler happy
1 parent 68e9fb1 commit c97fa66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/base/NSXMLElement/basic.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ int main()
6060
[node release];
6161

6262
// Equality tests.
63-
node = [[NSXMLNode alloc] initWithKind: NSXMLElementKind];
64-
other = [[NSXMLNode alloc] initWithKind: NSXMLElementKind];
63+
node = (NSXMLElement*)[[NSXMLNode alloc] initWithKind: NSXMLElementKind];
64+
other = (NSXMLElement*)[[NSXMLNode alloc] initWithKind: NSXMLElementKind];
6565
[other setName: @"test"];
6666
[node setName: @"test"];
6767
PASS([node isEqual: other],

0 commit comments

Comments
 (0)