diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h index 29e152a3..a880ae80 100644 --- a/include/opendht/infohash.h +++ b/include/opendht/infohash.h @@ -345,8 +345,8 @@ Hash::getRandom(Rd& rdev) } struct alignas(std::max_align_t) HexMap : public std::array, 256> { - HexMap() { - for (size_t i=0; i, 256>() { + for (size_t i = 0; i < size(); i++) { auto& e = (*this)[i]; e[0] = hex_digits[(i >> 4) & 0x0F]; e[1] = hex_digits[i & 0x0F];