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: upgrade apd lib to version without bug #1399

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

deelawn
Copy link
Contributor

@deelawn deelawn commented Nov 30, 2023

Addresses #1152

After debugging for a bit it became apparent the sign was being dropped during the operation in the apd module. Upgrading to the latest version fixes this.

Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@deelawn deelawn requested review from jaekwon, moul and a team as code owners November 30, 2023 00:27
@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Nov 30, 2023
@deelawn deelawn changed the title upgrade apd lib to version without bug fix: upgrade apd lib to version without bug Nov 30, 2023
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (726349d) 55.91% compared to head (f500803) 47.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1399      +/-   ##
==========================================
- Coverage   55.91%   47.23%   -8.68%     
==========================================
  Files         421      375      -46     
  Lines       65445    62285    -3160     
==========================================
- Hits        36595    29422    -7173     
- Misses      25992    30457    +4465     
+ Partials     2858     2406     -452     

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

Copy link
Member

@thehowl thehowl left a comment

Choose a reason for hiding this comment

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

thank you for the fix 🎉

gnovm/pkg/gnolang/op_eval.go Outdated Show resolved Hide resolved
@deelawn deelawn merged commit 5bc611a into gnolang:master Dec 4, 2023
192 of 194 checks passed
@deelawn deelawn deleted the fix/arith-sign-dropped branch December 4, 2023 15:11
gfanton pushed a commit to moul/gno that referenced this pull request Jan 18, 2024
Addresses gnolang#1152 

After debugging for a bit it became apparent the sign was being dropped
during the operation in the `apd` module. Upgrading to the latest
version fixes this.

<!-- please provide a detailed description of the changes made in this
pull request. -->

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

mixing untyped (negative) floats and integers in arithmetic sometimes drops the sign
2 participants