summaryrefslogtreecommitdiff
path: root/ext/gmp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-02-19 21:44:36 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-02-19 21:44:36 +0100
commit7b3a2d16aaeff60d3342786acd185f65a67eba63 (patch)
tree83997ad7397dcf75f2a93b8463fdb4f7ea2eb8a4 /ext/gmp
parent08b4f3c74598cb1a873897367fe71e48ee5742b6 (diff)
downloadphp-git-7b3a2d16aaeff60d3342786acd185f65a67eba63.tar.gz
Fix incorrect printf modifiers
Diffstat (limited to 'ext/gmp')
-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 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;
}