summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-10-05 15:15:01 +0000
committerSascha Schumann <sas@php.net>1999-10-05 15:15:01 +0000
commitf48a4916ea11620687215c29e6558e6000b898d9 (patch)
tree33e38ab91eaf00d1150861f84b2034dc897b0c3f /TSRM/TSRM.h
parentb510a6d11ffe6462737a24baa0b1f857434fb281 (diff)
downloadphp-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.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" {