Skip to content

Commit eda34ea

Browse files
committed
fix: zend_long -> zend_ulong
1 parent e0d4903 commit eda34ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/random/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ PHPAPI int64_t php_random_engine_range(const php_random_engine_algo *algo, void
10821082
zend_ulong umax = max - min;
10831083

10841084
/* (user-defined AND 64-bit ENV) OR 64-bit RNG OR umax over 32-bit range */
1085-
if ((algo->static_generate_size == 0 && sizeof(zend_long) > sizeof(uint32_t)) || algo->static_generate_size > sizeof(uint32_t) || umax > UINT32_MAX) {
1085+
if ((algo->static_generate_size == 0 && sizeof(zend_ulong) > sizeof(uint32_t)) || algo->static_generate_size > sizeof(uint32_t) || umax > UINT32_MAX) {
10861086
return rand_range64(algo, state, umax, engine_unsafe) + min;
10871087
}
10881088

0 commit comments

Comments
 (0)