-
Notifications
You must be signed in to change notification settings - Fork 34
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
test: Drop as_uint32() #691
Conversation
Codecov Report
@@ Coverage Diff @@
## master #691 +/- ##
==========================================
- Coverage 99.30% 99.30% -0.01%
==========================================
Files 72 72
Lines 10304 10300 -4
==========================================
- Hits 10232 10228 -4
Misses 72 72
Flags with carried forward coverage won't be shown. Click here to find out more.
|
test/unittests/execute_call_test.cpp
Outdated
@@ -433,12 +433,10 @@ TEST(execute_call, imported_functions_call_indirect) | |||
ASSERT_EQ(module->codesec.size(), 2); | |||
|
|||
constexpr auto sqr = [](Instance&, const Value* args, int) { | |||
const auto x = as_uint32(args[0]); | |||
return Value{uint64_t{x} * uint64_t{x}}; | |||
return Value{uint64_t{(args[0].i32)} * uint64_t{(args[0].i32)}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are the extra parentheses needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
automatic refactoring... There is "inline variable" command in CLion which placed x
in both places where it was used.
8957aab
to
0fd8f0d
Compare
da1d364
to
a2875da
Compare
a2875da
to
652b7dd
Compare
Depends on #517.