Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: enable -Wsign-conversion #338

Merged
merged 2 commits into from
Aug 21, 2018
Merged

CMake: enable -Wsign-conversion #338

merged 2 commits into from
Aug 21, 2018

Conversation

axic
Copy link
Member

@axic axic commented Aug 19, 2018

Fixes #311.

Depends on #332.

@@ -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.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish I could specify the type of EVMC_STATIC in EVMC, but this is almost impossible.

EVMC_STATIC is an enum, which in many compilers would be treated as a signed type (even though none of the values are negative)
@codecov-io
Copy link

Codecov Report

Merging #338 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #338   +/-   ##
=======================================
  Coverage   67.31%   67.31%           
=======================================
  Files           5        5           
  Lines         875      875           
  Branches      123      123           
=======================================
  Hits          589      589           
  Misses        257      257           
  Partials       29       29

@axic axic merged commit 0a7d219 into master Aug 21, 2018
@axic axic deleted the sign-conversion branch August 21, 2018 08:12
@axic axic removed the in progress label Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants