We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a win32-only issue.
On windows 64 bits: (8u * std::mem::size_of::<u32>()) returns 32 3u >> (8u * std::mem::size_of::<u32>()) returns 3 3u >> 32u returns 0
(8u * std::mem::size_of::<u32>())
3u >> (8u * std::mem::size_of::<u32>())
3u >> 32u
EDIT: IRC found the problem, uint is only 32 bits even on Windows 64 bits, which causes undefined behavior. Sorry for wasting your time, closing.
uint
The text was updated successfully, but these errors were encountered:
Auto merge of rust-lang#16249 - lnicola:sync-from-rust, r=lnicola
8356bc9
internal: Sync from rust
No branches or pull requests
This is a win32-only issue.
On windows 64 bits:
(8u * std::mem::size_of::<u32>())
returns 323u >> (8u * std::mem::size_of::<u32>())
returns 33u >> 32u
returns 0EDIT: IRC found the problem,
uint
is only 32 bits even on Windows 64 bits, which causes undefined behavior.Sorry for wasting your time, closing.
The text was updated successfully, but these errors were encountered: