diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index cf4fec8..6cbe4ed 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -967,7 +967,7 @@ std::string TNetwork::Hash(const std::string& str) { std::stringstream ret; unsigned char* hash = SHA256(reinterpret_cast(str.c_str()), str.length(), nullptr); for (int i = 0; i < 32; i++) { - ret << std::hex << (int)hash[i]; + ret << std::hex << static_cast(hash[i]); } return ret.str(); }