From 688e46f524ee64fb10c4fbb8e4a524116f9f674a Mon Sep 17 00:00:00 2001 From: Anonymous275 <36374260+Anonymous-275@users.noreply.github.com> Date: Wed, 21 Dec 2022 22:34:21 +0000 Subject: [PATCH] - fix linux build --- src/TNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }