From: Nikita Popov Date: Thu, 4 Oct 2018 08:58:20 +0000 (+0200) Subject: Fix incorrect printf modifier after size_t changes X-Git-Tag: php-7.4.0alpha1~1764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74d138e4a3c0cb408112d23b88ccb0e4a8571c48;p=php Fix incorrect printf modifier after size_t changes --- diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 0ac643160a..13b068a90c 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -651,7 +651,7 @@ PHP_FUNCTION(hash_hkdf) } else if (length == 0) { length = ops->digest_size; } else if (length > (zend_long) (ops->digest_size * 255)) { - php_error_docref(NULL, E_WARNING, "Length must be less than or equal to %d: " ZEND_LONG_FMT, ops->digest_size * 255, length); + php_error_docref(NULL, E_WARNING, "Length must be less than or equal to %zd: " ZEND_LONG_FMT, ops->digest_size * 255, length); RETURN_FALSE; }