Fix compiler warning

This commit is contained in:
Tatsuhiro Tsujikawa 2015-06-30 21:33:54 +09:00
parent dc7232fa53
commit 2f7839fa42
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ std::pair<OutputIterator, size_t> copy_hex_low(const uint8_t *src,
size_t srclen, size_t avail,
OutputIterator oitr) {
auto nwrite = std::min(srclen * 2, avail) / 2;
for (auto i = 0; i < nwrite; ++i) {
for (auto i = 0u; i < nwrite; ++i) {
*oitr++ = LOWER_XDIGITS[src[i] >> 4];
*oitr++ = LOWER_XDIGITS[src[i] & 0xf];
}