mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixing signedness conversion warnings in libevmasm
Co-authored-by: Harikrishnan Mulackal <webmail.hari@gmail.com>
This commit is contained in:
co-authored by
Harikrishnan Mulackal
parent
b9f2697a3c
commit
e4e3f49844
@@ -45,8 +45,8 @@ public:
|
||||
BlockId() { *this = invalid(); }
|
||||
explicit BlockId(unsigned _id): m_id(_id) {}
|
||||
explicit BlockId(u256 const& _id);
|
||||
static BlockId initial() { return BlockId(-2); }
|
||||
static BlockId invalid() { return BlockId(-1); }
|
||||
static BlockId initial() { return BlockId(std::numeric_limits<unsigned>::max() - 1); }
|
||||
static BlockId invalid() { return BlockId(std::numeric_limits<unsigned>::max()); }
|
||||
|
||||
bool operator==(BlockId const& _other) const { return m_id == _other.m_id; }
|
||||
bool operator!=(BlockId const& _other) const { return m_id != _other.m_id; }
|
||||
|
||||
Reference in New Issue
Block a user