Skip to content

Conversation

fw-immunant
Copy link
Contributor

A CI run randomly found this cast sequence that fails. I'm not sure what to do with it at this point, but this PR serves to at least document what's going on.

@ahomescu ahomescu force-pushed the ahomescu/restore_refactor branch from e3fb41a to c717e17 Compare October 7, 2025 22:26
@ahomescu
Copy link
Contributor

ahomescu commented Oct 7, 2025

Your branch needs a rebase (maybe once we land the base PR), then I'll take a look.

@ahomescu ahomescu self-requested a review October 7, 2025 22:32
@ahomescu ahomescu force-pushed the ahomescu/restore_refactor branch 4 times, most recently from a77dce1 to 51fbbcd Compare October 8, 2025 23:20
Base automatically changed from ahomescu/restore_refactor to master October 8, 2025 23:57
verify_double_cast(
PointerWidth(64),
vec![
SimpleTy::Int(32, true),
Copy link
Contributor

Choose a reason for hiding this comment

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

x as i32 as u32 as isize is not correct to shorten to x as i32 as usize because it would sign-extend, but isn't x as u32 as isize fine?

@fw-immunant fw-immunant force-pushed the fw/refactor-casts-quickcheck branch from 9ae5f7a to 7a89e71 Compare October 9, 2025 14:42
@fw-immunant fw-immunant force-pushed the fw/refactor-casts-quickcheck branch from 7a89e71 to 882d68f Compare October 9, 2025 17:28
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.

2 participants