Fix build warning issues

This commit is contained in:
root
2026-04-28 07:34:45 +00:00
parent 0d9afa3986
commit 34864c5254
11 changed files with 18 additions and 21 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ inline std::string Hash(std::string input)
unsigned char hash[CSHA256::OUTPUT_SIZE];
CSHA256().Write((const unsigned char*)input.data(), input.size()).Finalize(hash);
stringstream ss;
for (int i = 0; i < CSHA256::OUTPUT_SIZE; i++) {
for (size_t i = 0; i < CSHA256::OUTPUT_SIZE; i++) {
ss << hex << setw(2) << setfill('0') << (int)hash[i];
}
return ss.str();