diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 863a529631e..dc2b6497463 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -2080,8 +2080,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; }