mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Fix atomic_fetch_sub on workers (#1331)
clangd was showing a diagnostic for this line.
This commit is contained in:
parent
cf9252f429
commit
3142758675
1 changed files with 1 additions and 1 deletions
|
@ -1351,7 +1351,7 @@ static void CallSimpleHookIfDefined(const char *s) {
|
|||
|
||||
static void ReportWorkerExit(int pid, int ws) {
|
||||
int workers;
|
||||
workers = atomic_fetch_sub(&shared->workers, 1) - 1;
|
||||
workers = atomic_fetch_sub((_Atomic(int) *)&shared->workers, 1) - 1;
|
||||
if (WIFEXITED(ws)) {
|
||||
if (WEXITSTATUS(ws)) {
|
||||
LockInc(&shared->c.failedchildren);
|
||||
|
|
Loading…
Reference in a new issue