-
Notifications
You must be signed in to change notification settings - Fork 274
Use numeric_cast_v<std::size_t> instead of deprecated integer2size_t [blocks: #2310] #3051
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
Conversation
|
src/goto-programs/goto_convert.cpp
Outdated
@@ -1903,7 +1903,7 @@ bool goto_convertt::get_string_constant( | |||
forall_operands(it, index_op) | |||
if(it->is_constant()) | |||
{ | |||
unsigned long i=integer2ulong( | |||
const std::size_t i = numeric_cast_v<std::size_t>( | |||
binary2integer(id2string(to_constant_expr(*it).get_value()), true)); | |||
|
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.
BTW, just ran into that one again (in #3100).
I'd advocate removing this method, given that I don't think it works.
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.
Which method are you referring to? I wasn't able to figure out which problem #3100 is solving, so I'd need more info. Thanks!
fd61169
to
9cd404b
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.
This PR failed Diffblue compatibility checks (cbmc commit: fd61169).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87937825
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
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.
Passed Diffblue compatibility checks (cbmc commit: 9cd404b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87938549
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.
This change appears to be as described in all the areas I am "owner" of.
9cd404b
to
d73108e
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.
Passed Diffblue compatibility checks (cbmc commit: d73108e).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88736803
be727b4
to
23ff9c9
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 23ff9c9).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/89875998
23ff9c9
to
7a4c5e1
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.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: 7a4c5e1).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90159583
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
How does this relate to #3252 ? Should this be updated / closed in light of that? |
7a4c5e1
to
5d837c0
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 5d837c0).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90496251
5d837c0
to
eca50ce
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.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: eca50ce).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90620816
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
integer2size_t is deprecated. Replacing it as recommended reduces the number of warnings emitted at build time and actually implements what deprecation is about.
eca50ce
to
fe3f73c
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.
Diffblue compatibility check is currently unavailable.
Please create manual bump.
(cbmc commit: fe3f73c).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/90844662
Check actually passed ✔️ |
Uh oh!
There was an error while loading. Please reload this page.