Commit 9cba468
authored
Fix emulated mask()
Problem: 0/1 values are shifted inside a 32Bit integer value up to 63 positions to the left. Therefore, all bits at positions > 32 in the final uint64_t return value will be set to 0.
Fix: Explicit cast to (uint64_t) before shifting.1 parent 5e971d6 commit 9cba468
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments