From: Nikita Popov Date: Mon, 19 Feb 2018 20:44:36 +0000 (+0100) Subject: Fix incorrect printf modifiers X-Git-Tag: php-7.2.4RC1~59^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b3a2d16aaeff60d3342786acd185f65a67eba63;p=php Fix incorrect printf modifiers --- diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index ab0d920093..31cd1ec636 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -1956,8 +1956,8 @@ ZEND_FUNCTION(gmp_setbit) php_error_docref(NULL, E_WARNING, "Index must be greater than or equal to zero"); RETURN_FALSE; } - if (index / GMP_NUMB_BITS >= INT_MAX ) { - php_error_docref(NULL, E_WARNING, "Index must be less than %ld * %ld", INT_MAX, GMP_NUMB_BITS); + if (index / GMP_NUMB_BITS >= INT_MAX) { + php_error_docref(NULL, E_WARNING, "Index must be less than %d * %d", INT_MAX, GMP_NUMB_BITS); RETURN_FALSE; }