Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Fix autorelease pool test
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Nov 1, 2023
1 parent 63bc6a7 commit d22cf20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/native_objc_test/automated_ref_count_test.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ - (ArcTestObject*)returnsRetained NS_RETURNS_RETAINED {

@end

id createAutoreleasePool() {
return [NSAutoreleasePool new];
void* createAutoreleasePool() {
return (void*)[NSAutoreleasePool new];
}

void destroyAutoreleasePool(id pool) {
[pool release];
void destroyAutoreleasePool(void* pool) {
[((NSAutoreleasePool*)pool) release];
}

@implementation RefCounted
Expand Down

0 comments on commit d22cf20

Please sign in to comment.