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

Fix issue #356 #366

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Fix issue #356 #366

merged 2 commits into from
Mar 19, 2024

Conversation

Acaccia
Copy link
Collaborator

@Acaccia Acaccia commented Mar 18, 2024

Fixes #356

$stdlib.pow-int omitted to check for the second operand higher part in its overflow check.

@Acaccia Acaccia self-assigned this Mar 18, 2024
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.21%. Comparing base (6b9e72f) to head (02d5171).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #366   +/-   ##
=======================================
  Coverage   91.21%   91.21%           
=======================================
  Files          40       40           
  Lines       14015    14015           
  Branches    14015    14015           
=======================================
  Hits        12784    12784           
  Misses        567      567           
  Partials      664      664           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@csgui csgui left a comment

Choose a reason for hiding this comment

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

LGTM!

1: checked the implementation that seems ok:

i64.gt_u results in a i32.
i64.ne also results in a i32.

Both are used as arguments to the binary i32.or operation that expects two 32-bits.

2: validated and checked test cases looking for edge and valid values.

@Acaccia Acaccia added this pull request to the merge queue Mar 19, 2024
Merged via the queue into main with commit e58664a Mar 19, 2024
8 checks passed
@Acaccia Acaccia deleted the fix/issue-356 branch March 19, 2024 08:32
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.

Wrong handling of overflows in stdlib.pow-int
2 participants