Skip to content

Commit

Permalink
Fix InterlockedIncrement error
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed May 15, 2024
1 parent 96a7c29 commit a03da70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/src/win/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ int ut_sem_free(
}

int ut_ainc(int* count) {
return InterlockedIncrement(count);
return InterlockedIncrement((volatile long*)count);
}

int ut_adec(int* count) {
return InterlockedDecrement(count);
return InterlockedDecrement((volatile long*)count);
}

0 comments on commit a03da70

Please sign in to comment.