Commit 2daf48e
committed
Use UINT32_MAX as magic divisor
As @jhawthorn pointed out, the original calculation used `(1 << 32) /
heap->slot_size + 1)` which leads to a subtle off by one error that gets
shifted away because our slot sizes aren't powers of 2.
This is still worth fixing now, so that we don't trip up over it if we
change slot sizes in the future.1 parent b53aada commit 2daf48e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9511 | 9511 | | |
9512 | 9512 | | |
9513 | 9513 | | |
9514 | | - | |
| 9514 | + | |
9515 | 9515 | | |
9516 | 9516 | | |
9517 | 9517 | | |
| |||
0 commit comments