mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
fix ms compile warnings
This commit is contained in:
parent
6883b92116
commit
8a156d9a39
@ -245,7 +245,7 @@ PHP_FUNCTION(mt_srand)
|
||||
* -RL
|
||||
*/
|
||||
#define RAND_RANGE(__n, __min, __max) \
|
||||
(__n) = (__min) + (int)((double)(__max) - (__min) + 1.0) * ((__n) / (PHP_RAND_MAX + 1.0))
|
||||
(__n) = (__min) + (long) ((double) ((__max) - (__min) + 1.0)) * ((__n) / (PHP_RAND_MAX + 1.0))
|
||||
|
||||
/* {{{ proto int rand([int min, int max])
|
||||
Returns a random number */
|
||||
|
Loading…
Reference in New Issue
Block a user