diff options
-rw-r--r-- | ext/gmp/gmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |