mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 14:09:12 +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) {
|
static void ReportWorkerExit(int pid, int ws) {
|
||||||
int workers;
|
int workers;
|
||||||
workers = atomic_fetch_sub(&shared->workers, 1) - 1;
|
workers = atomic_fetch_sub((_Atomic(int) *)&shared->workers, 1) - 1;
|
||||||
if (WIFEXITED(ws)) {
|
if (WIFEXITED(ws)) {
|
||||||
if (WEXITSTATUS(ws)) {
|
if (WEXITSTATUS(ws)) {
|
||||||
LockInc(&shared->c.failedchildren);
|
LockInc(&shared->c.failedchildren);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue