diff options
Diffstat (limited to 'ext/standard/lcg.c')
-rw-r--r-- | ext/standard/lcg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 311173a137..051dfc61c8 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -83,9 +83,9 @@ static void lcg_seed(TSRMLS_D) /* {{{ */ LCG(s1) = 1; } #ifdef ZTS - LCG(s2) = (long) tsrm_thread_id(); + LCG(s2) = (zend_long) tsrm_thread_id(); #else - LCG(s2) = (long) getpid(); + LCG(s2) = (zend_long) getpid(); #endif /* Add entropy to s2 by calling gettimeofday() again */ |