Skip to content

Commit 658926e

Browse files
ArkanicBenBE
authored andcommitted
Fix compiler warning on MacOS
This resolves a compiler warning when compiling with asserts enabled.
1 parent b314150 commit 658926e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

darwin/DarwinProcess.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,11 @@ void DarwinProcess_scanThreads(DarwinProcess* dp, DarwinProcessTable* dpt) {
496496
continue;
497497
}
498498

499-
assert(Process_getPid(tprocess) == tid);
499+
pid_t tprocessPid = Process_getPid(tprocess);
500+
assert(tprocessPid >= 0);
501+
assert((uint64_t)tprocessPid == tid);
502+
(void)tprocessPid;
503+
500504
Process_setParent(tprocess, pid);
501505
Process_setThreadGroup(tprocess, pid);
502506
tprocess->super.show = true;

0 commit comments

Comments
 (0)