Skip to content

Commit 9ff5dc5

Browse files
committed
tests: fix test build
The DISPATCH_SIZEOF_PTR caused a test to go down the wrong path. This fixes the test and accounts for the Windows 64 bit case as well (which is not a LP64 environment).
1 parent 1d25040 commit 9ff5dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/dispatch_queue_finalizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ main(void)
5050
{
5151
dispatch_test_start("Dispatch Queue Finalizer");
5252

53-
#if DISPATCH_SIZEOF_PTR == 8
53+
#if defined(__LP64__) || defined(_WIN64)
5454
ctxt_magic = (void*)((uintptr_t)arc4random() << 32 | arc4random());
5555
#else
5656
ctxt_magic = (void*)arc4random();

0 commit comments

Comments
 (0)