From: jvoisin Date: Sat, 5 Jan 2019 14:51:17 +0000 (+0100) Subject: Fix a warning about comparing signed/unsigned variables X-Git-Tag: php-7.4.0alpha1~1283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d9624e126366fe924f1374206e29c88a75c9361;p=php Fix a warning about comparing signed/unsigned variables This can be seen here: https://travis-ci.org/nbs-system/snuffleupagus/jobs/473895085#L685 --- diff --git a/ext/hash/php_hash.h b/ext/hash/php_hash.h index 08279f27ad..5e18665c75 100644 --- a/ext/hash/php_hash.h +++ b/ext/hash/php_hash.h @@ -150,7 +150,7 @@ PHP_HASH_API int php_hash_copy(const void *ops, void *orig_context, void *dest_c static inline void php_hash_bin2hex(char *out, const unsigned char *in, size_t in_len) { static const char hexits[17] = "0123456789abcdef"; - int i; + size_t i; for(i = 0; i < in_len; i++) { out[i * 2] = hexits[in[i] >> 4];