mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adding fixes for signedness conversion warnings in libyul
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
This commit is contained in:
co-authored by
Kamil Śliwak
parent
21a9d3dd21
commit
33e7b24df0
+2
-2
@@ -71,10 +71,10 @@ public:
|
||||
{
|
||||
// FNV hash - can be replaced by a better one, e.g. xxhash64
|
||||
std::uint64_t hash = emptyHash();
|
||||
for (auto c: v)
|
||||
for (char c: v)
|
||||
{
|
||||
hash *= 1099511628211u;
|
||||
hash ^= c;
|
||||
hash ^= static_cast<uint64_t>(c);
|
||||
}
|
||||
|
||||
return hash;
|
||||
|
||||
Reference in New Issue
Block a user