commit 375640cfe5a949576dba434562fb20f1c3ea2f1d
parent 4e86edb5765c955182f18a2d72b26d91d1c866ba
Author: Evgeny Grin <k2k@drgrin.dev>
Date: Sat, 3 May 2025 15:02:12 +0300
mhd_threads: fixed code for x32 W32
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mhd2/mhd_threads.c b/src/mhd2/mhd_threads.c
@@ -244,17 +244,17 @@ mhd_create_thread (mhd_thread_handle_ID *handle_id,
#elif defined(mhd_THREADS_KIND_W32)
uintptr_t thr_handle;
unsigned int stack_size_w32;
-# if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT
mhd_assert (! mhd_thread_handle_ID_is_valid_handle (*handle_id));
stack_size_w32 = (unsigned int) stack_size;
+# if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT
if (stack_size != stack_size_w32)
{
errno = EINVAL;
return false;
}
-#endif /* SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT */
+# endif /* SIZEOF_SIZE_T != SIZEOF_UNSIGNED_INT */
thr_handle = _beginthreadex (NULL,
stack_size_w32,
start_routine,