summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2026-02-13 13:37:49 +0000
committerMatt Valentine-House <matt@eightbitraptor.com>2026-02-13 14:29:14 +0000
commit2daf48e724d59ff0094a8d7ff9af9936ca5c84ab (patch)
treed0bd3cbc9b73050a81ecfb2b4b758de1aecf4e22 /doc
parentb53aada8da9615b4818da3d87dd92a5f2aea89b8 (diff)
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.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions