src: Fix compile error with clang-3.6

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-25 01:27:18 +09:00
parent ece8289aaf
commit 3b24be3bcd
1 changed files with 2 additions and 1 deletions

View File

@ -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<ptrdiff_t>(16), end - i);
auto nextlen =
std::min(static_cast<size_t>(16), static_cast<size_t>(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