summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.h
diff options
context:
space:
mode:
Diffstat (limited to 'TSRM/TSRM.h')
-rw-r--r--TSRM/TSRM.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h
index fef17fc873..10554a9a55 100644
--- a/TSRM/TSRM.h
+++ b/TSRM/TSRM.h
@@ -61,7 +61,7 @@ typedef int ts_rsrc_id;
typedef void (*ts_allocate_ctor)(void *);
-#define THREAD_HASH_OF(thr,ts) thr%ts
+#define THREAD_HASH_OF(thr,ts) (unsigned long)thr%(unsigned long)ts
#ifdef __cplusplus
extern "C" {