BUG/MINOR: threads: tid_bit must be a unsigned long

This is specific to threads, no backport is needed.
This commit is contained in:
Christopher Faulet 2017-11-14 10:16:04 +01:00 committed by Willy Tarreau
parent e1533f5790
commit e9a896e09e
2 changed files with 3 additions and 3 deletions

View 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

View 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