Skip to content

Commit

Permalink
Merge pull request #338 from ewasm/sign-conversion
Browse files Browse the repository at this point in the history
CMake: enable -Wsign-conversion
  • Loading branch information
axic committed Aug 21, 2018
2 parents 98b47bf + e999462 commit 0a7d219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cable_set_build_type(DEFAULT RelWithDebInfo CONFIGURATION_TYPES Debug;Release;Re

cable_configure_compiler()
# TODO: fix the warnings instead
add_compile_options(-Wno-pedantic -Wno-sign-conversion)
add_compile_options(-Wno-pedantic)

include(ProjectBinaryen)

Expand Down
2 changes: 1 addition & 1 deletion src/eei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ namespace hera {
}

ensureCondition(gas >= 0, ArgumentOutOfRange, "Negative gas supplied.");
heraAssert((m_msg.flags & ~EVMC_STATIC) == 0, "Unknown flags not supported.");
heraAssert((m_msg.flags & ~uint32_t(EVMC_STATIC)) == 0, "Unknown flags not supported.");

evmc_message call_message;
call_message.destination = loadUint160(addressOffset);
Expand Down

0 comments on commit 0a7d219

Please sign in to comment.