Skip to content

Commit

Permalink
Fix warning: comparison of integers of different signs
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-nsk authored and nmoinvaz committed Jan 26, 2023
1 parent 9450848 commit 6454d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion threadpool_winvista.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ bool threadpool_delete(void **ctx) {
free(threadpool);
*ctx = NULL;
return true;
}
}
2 changes: 1 addition & 1 deletion threadpool_winxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static void __cdecl threadpool_do_work(void *arg) {
static void threadpool_create_thread_on_demand(threadpool_s *threadpool) {
// Create new thread and add it to the list of threads
uintptr_t handle = _beginthread(threadpool_do_work, 0, threadpool);
if (handle == -1)
if (handle == (uintptr_t)-1)
return;

threadpool_thread_s *thread = calloc(1, sizeof(threadpool_thread_s));
Expand Down

0 comments on commit 6454d03

Please sign in to comment.