-
Notifications
You must be signed in to change notification settings - Fork 273
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
Introduce bitst and bytest to avoid bit/byte mix-up #7413
base: develop
Are you sure you want to change the base?
Conversation
71ea76d
to
185c77f
Compare
185c77f
to
eb3bbab
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7413 +/- ##
===========================================
+ Coverage 78.09% 78.36% +0.27%
===========================================
Files 1726 1727 +1
Lines 189039 188491 -548
Branches 18399 18442 +43
===========================================
+ Hits 147629 147717 +88
+ Misses 41410 40774 -636 ☔ View full report in Codecov by Sentry. |
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
e592d27
to
117e4d6
Compare
117e4d6
to
7cd034d
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
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.
3dad36d
to
b533d00
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.