From 3b24be3bcdcd84bf4046236d1e28b183c9e8578c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 25 Mar 2015 01:27:18 +0900 Subject: [PATCH] src: Fix compile error with clang-3.6 --- src/util.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.cc b/src/util.cc index 6c95a659..5cc6b25a 100644 --- a/src/util.cc +++ b/src/util.cc @@ -1071,7 +1071,8 @@ void hexdump(FILE *out, const uint8_t *src, size_t len) { auto end = src + len; auto i = src; for (;;) { - auto nextlen = std::min(static_cast(16), end - i); + auto nextlen = + std::min(static_cast(16), static_cast(end - i)); if (nextlen == buflen && std::equal(std::begin(buf), std::begin(buf) + buflen, i)) { // as long as adjacent 16 bytes block are the same, we just