Skip to content

Commit

Permalink
fix compilation error on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored Dec 24, 2024
1 parent 13943d9 commit 42f7c71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions liblangutil/EVMVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
* EVM versioning.
*/

#include <liblangutil/EVMVersion.h>
#include <libevmasm/Instruction.h>
#include <liblangutil/EVMVersion.h>


using namespace solidity;
using namespace solidity::evmasm;
Expand All @@ -29,7 +30,7 @@ using namespace solidity::langutil;
bool EVMVersion::hasOpcode(Instruction _opcode, std::optional<uint8_t> _eofVersion) const
{
// EOF version can be only defined since prague
assert(!_eofVersion.has_value() || this->m_version >= prague());
assert(!_eofVersion.has_value() || static_cast<int>(m_version) >= static_cast<int>(prague().m_version));

switch (_opcode)
{
Expand Down

0 comments on commit 42f7c71

Please sign in to comment.