-
Notifications
You must be signed in to change notification settings - Fork 279
Introduce bitst and bytest to avoid bit/byte mix-up #7413
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
base: develop
Are you sure you want to change the base?
Conversation
71ea76d
to
185c77f
Compare
185c77f
to
eb3bbab
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #7413 +/- ##
===========================================
+ Coverage 80.39% 80.40% +0.01%
===========================================
Files 1688 1688
Lines 207403 207531 +128
Branches 73 73
===========================================
+ Hits 166749 166873 +124
- Misses 40654 40658 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
eb3bbab
to
cb0fde1
Compare
Have you seen the approach taken to strong types here? https://www.fluentcpp.com/2016/12/08/strong-types-for-strong-interfaces/ This approach appears to have the following advantages -
|
Thank you for alerting me to this! This will require implementing more methods, but that's ok. I'll try this route. |
4279119
to
c14cb4a
Compare
c14cb4a
to
b6c9a4e
Compare
7cd034d
to
98d642f
Compare
656f15d
to
2cc9ef7
Compare
2cc9ef7
to
5eb0bd3
Compare
5eb0bd3
to
72265e9
Compare
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.
LGTM.
72265e9
to
82ad51e
Compare
82ad51e
to
79490c5
Compare
a6df679
to
3dad36d
Compare
3dad36d
to
b533d00
Compare
The upper bound for lowering a union to a sequence of bytes is the byte-width of the widest member, not the bit width.
Use mp_integers with a unit to clarify when an mp_integer holds a number of bits or a number of bytes. This makes sure that type-inconsistent comparisons as fixed in diffblue#7411 result in compile-time errors.
b533d00
to
e427ca9
Compare
Use mp_integers with a unit to clarify when an mp_integer holds a number
of bits or a number of bytes. This makes sure that type-inconsistent
comparisons as fixed in #7411 result in compile-time errors.