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 bug with float32 and float64 overflowing integers #18

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

ccoVeille
Copy link
Owner

@ccoVeille ccoVeille commented Sep 7, 2024

Repository owner deleted a comment from codecov bot Sep 7, 2024
Copy link

codecov bot commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (fc26f60) to head (a0365ea).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         2    +1     
  Lines           60        90   +30     
=========================================
+ Hits            60        90   +30     

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

@ccoVeille
Copy link
Owner Author

I see you added a 👍 is there something missing in term of setting that prevent you to approve via the GitHub feature made for that ?

@ccoVeille ccoVeille force-pushed the float branch 2 times, most recently from e05207d to a4b2e46 Compare September 8, 2024 19:51
@ccoVeille ccoVeille changed the title refactor error messages fix bug with float32 and float64 overflowing integers Sep 8, 2024
@ccoVeille
Copy link
Owner Author

ccoVeille commented Sep 8, 2024

The scope of this PR has been totally revamped, this PR is now only about fixing the bug with floats possibly overflowing integers

The PR was containing changes about having error messages, it will be addressed in another PR (here is the commit for reference e374726)

@ldemailly
Copy link
Collaborator

chore: add new types

isn't that "feat" (though personally I don't use these abbreviations)

types.go Show resolved Hide resolved
types.go Show resolved Hide resolved
errors.go Outdated Show resolved Hide resolved
asserters.go Outdated Show resolved Hide resolved
asserters.go Outdated Show resolved Hide resolved
@ccoVeille
Copy link
Owner Author

chore: add new types

isn't that "feat" (though personally I don't use these abbreviations)

I'm not adding new type in that commit, I'm somehow renaming it.

I hate conventional commit, but I see a lot of it on GitHub, so I was somehow poisoned. When I'm on GitHub, I use it

We may add the following type later:
- uintptr
- string
- bool
@ccoVeille ccoVeille force-pushed the float branch 2 times, most recently from b72ed32 to 1ac7b33 Compare September 9, 2024 20:34
Only uint64 and uint was working as expected

Fixes #23
@ccoVeille ccoVeille merged commit c6327a9 into main Sep 9, 2024
5 checks passed
@ccoVeille ccoVeille deleted the float branch September 9, 2024 20:36
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.

#14 introduced a bug with float overflow
2 participants