Commit bbfcfdc
authored
Fix shift left overflow in test_msm_ux when bit_width is 64 (#115)
`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 parent 17ecf01 commit bbfcfdc
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
486 | 493 | | |
487 | 494 | | |
488 | 495 | | |
| |||
0 commit comments