From f48a4916ea11620687215c29e6558e6000b898d9 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Tue, 5 Oct 1999 15:15:01 +0000 Subject: [PATCH] Explicit casts to ulong. Some compiler don't like pointers in % --- TSRM/TSRM.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" { -- 2.50.1