]> granicus.if.org Git - php/commitdiff
Fix incorrect printf modifiers
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 19 Feb 2018 20:44:36 +0000 (21:44 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 19 Feb 2018 20:44:36 +0000 (21:44 +0100)
ext/gmp/gmp.c

index ab0d920093540db5bb7ac677f65c8d7efd1ffe04..31cd1ec636c0f53ef35c940f28c82eea8620b047 100644 (file)
@@ -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;
     }