]> granicus.if.org Git - php/commitdiff
Fix a warning about comparing signed/unsigned variables
authorjvoisin <julien.voisin@dustri.org>
Sat, 5 Jan 2019 14:51:17 +0000 (15:51 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 6 Jan 2019 00:54:48 +0000 (01:54 +0100)
This can be seen here: https://travis-ci.org/nbs-system/snuffleupagus/jobs/473895085#L685

ext/hash/php_hash.h

index 08279f27ad71397161b449db6f9a073871c54bcd..5e18665c75890c0cdb1ef8c4e2462bbc5dcd981c 100644 (file)
@@ -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];