summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-02-19 21:46:11 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-02-19 21:46:11 +0100
commit1b6a9ea5845aa6c40e630ba4bba8dedba96d8cf4 (patch)
tree464557eb287a9842417a9ef522614dfa8842d138
parentfa7c32040c31eab2b7b3f4cae0697e8e6be9b5d0 (diff)
parent7b3a2d16aaeff60d3342786acd185f65a67eba63 (diff)
downloadphp-git-1b6a9ea5845aa6c40e630ba4bba8dedba96d8cf4.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
-rw-r--r--ext/gmp/gmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c
index d9fcf3e90e..f256d84d64 100644
--- a/ext/gmp/gmp.c
+++ b/ext/gmp/gmp.c
@@ -1965,8 +1965,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;
}