]> granicus.if.org Git - php/commitdiff
Explicit casts to ulong. Some compiler don't like pointers in %
authorSascha Schumann <sas@php.net>
Tue, 5 Oct 1999 15:15:01 +0000 (15:15 +0000)
committerSascha Schumann <sas@php.net>
Tue, 5 Oct 1999 15:15:01 +0000 (15:15 +0000)
TSRM/TSRM.h

index fef17fc8737ace1e56903a2acfc558e140438b5f..10554a9a55a6f05b41e988e5d3adffcd8ba92e8f 100644 (file)
@@ -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" {