diff options
author | Sascha Schumann <sas@php.net> | 1999-10-05 15:15:01 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-10-05 15:15:01 +0000 |
commit | f48a4916ea11620687215c29e6558e6000b898d9 (patch) | |
tree | 33e38ab91eaf00d1150861f84b2034dc897b0c3f /TSRM/TSRM.h | |
parent | b510a6d11ffe6462737a24baa0b1f857434fb281 (diff) | |
download | php-git-f48a4916ea11620687215c29e6558e6000b898d9.tar.gz |
Explicit casts to ulong. Some compiler don't like pointers in %
Diffstat (limited to 'TSRM/TSRM.h')
-rw-r--r-- | TSRM/TSRM.h | 2 |
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" { |