diff --git a/src/string_bytes.cc b/src/string_bytes.cc index b3c0a90b548c70..5b7e03042fde74 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -528,7 +528,7 @@ size_t StringBytes::hex_encode( "not enough space provided for hex encode"); dlen = slen * 2; - for (uint32_t i = 0, k = 0; k < dlen; i += 1, k += 2) { + for (size_t i = 0, k = 0; k < dlen; i += 1, k += 2) { static const char hex[] = "0123456789abcdef"; uint8_t val = static_cast(src[i]); dst[k + 0] = hex[val >> 4];