# std.heap.DebugAllocator: make BucketHeader.fromPage\(\) use wrapping arithmetic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b5bcbf2a62aa513022fdb12df75699308f87b7bc)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b5bcbf2a62aa513022fdb12df75699308f87b7bc

Requested commit: b5bcbf2a62aa513022fdb12df75699308f87b7bc

Commit: b5bcbf2a62aa513022fdb12df75699308f87b7bc

Tree: 53598c368c9d3d6824ee4911ae97be5ba4323735

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.heap.DebugAllocator: make BucketHeader.fromPage() use wrapping arithmetic

If we've allocated the very last page in the address space then these operations
will overflow and underflow respectively - which is fine.

```

## Parents

- [a9d18c4a0c2be3d5e7dcedbedc32a9998b1e5515](https://git.cafe/gitcafe/zig/commit/a9d18c4a0c2be3d5e7dcedbedc32a9998b1e5515?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b5bcbf2a62aa513022fdb12df75699308f87b7bc?format=markdown)
