From daefbdaa1ee2711d05be0ba9fbf69fdeff374af0 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 10 May 2020 11:57:04 +0300 Subject: [PATCH] Fixed type mismatch for zephir_mt_rand's warning See: https://github.com/phalcon/zephir/issues/2091 --- ext/kernel/math.c | 2 +- kernels/ZendEngine3/math.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/kernel/math.c b/ext/kernel/math.c index 1a291a1571..0b0f7eeb12 100644 --- a/ext/kernel/math.c +++ b/ext/kernel/math.c @@ -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; } diff --git a/kernels/ZendEngine3/math.c b/kernels/ZendEngine3/math.c index 1a291a1571..0b0f7eeb12 100644 --- a/kernels/ZendEngine3/math.c +++ b/kernels/ZendEngine3/math.c @@ -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; }