]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: threads: tid_bit must be a unsigned long
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2017 09:16:04 +0000 (10:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Nov 2017 17:11:28 +0000 (18:11 +0100)
This is specific to threads, no backport is needed.

include/common/hathreads.h
src/hathreads.c

index 31d0f533b917abca029098b3efa23f94a36c543e..9782ca9a07158d122a60ea6fe5c077660fa374ab 100644 (file)
@@ -26,7 +26,7 @@
 
 #define MAX_THREADS_MASK ((unsigned long)-1)
 extern THREAD_LOCAL unsigned int tid;     /* The thread id */
-extern THREAD_LOCAL unsigned int tid_bit; /* The bit corresponding to the thread id */
+extern THREAD_LOCAL unsigned long tid_bit; /* The bit corresponding to the thread id */
 
 #ifndef USE_THREAD
 
index 2856a9f24ce564cfffbe3db7368c60e122c2b237..eb9cd3fcecdf6df42938d81583fbc994a6198343 100644 (file)
@@ -18,8 +18,8 @@
 #include <common/standard.h>
 #include <proto/fd.h>
 
-THREAD_LOCAL unsigned int tid     = 0;
-THREAD_LOCAL unsigned int tid_bit = (1UL << 0);
+THREAD_LOCAL unsigned int tid      = 0;
+THREAD_LOCAL unsigned long tid_bit = (1UL << 0);
 
 #ifdef USE_THREAD