Skip to content

Commit

Permalink
Merge pull request #2100 from phalcon/fix/type-mismatch-zephir-mt-rand
Browse files Browse the repository at this point in the history
Fixed type mismatch for zephir_mt_rand's warning
  • Loading branch information
sergeyklay authored May 10, 2020
2 parents 19ceeac + daefbda commit a6a3566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/kernel/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ zephir_mt_rand(zend_long min, zend_long max)
zend_long number;

if (max < min) {
php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min);
php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion kernels/ZendEngine3/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ zephir_mt_rand(zend_long min, zend_long max)
zend_long number;

if (max < min) {
php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min);
php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min);
return 0;
}

Expand Down

0 comments on commit a6a3566

Please sign in to comment.