Skip to content

Fix shift left overflow in test_msm_ux when bit_width is 64#115

Merged
srinathsetty merged 1 commit intomicrosoft:mainfrom
amit0365:fix/msm-test-shift-overflow
Apr 6, 2026
Merged

Fix shift left overflow in test_msm_ux when bit_width is 64#115
srinathsetty merged 1 commit intomicrosoft:mainfrom
amit0365:fix/msm-test-shift-overflow

Conversation

@amit0365
Copy link
Copy Markdown
Contributor

@amit0365 amit0365 commented Apr 3, 2026

1 << 64 overflows since shifting a u64 by 64 positions exceeds its bit width. Skip the modulo when bit_width == 64 since any u64 value is already in range.

`1 << 64` overflows since shifting a u64 by 64 positions exceeds its
bit width. Skip the modulo when bit_width == 64 since any u64 value
is already in range.
@srinathsetty srinathsetty merged commit bbfcfdc into microsoft:main Apr 6, 2026
7 checks passed
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