# gpa: Fix bookkeeping logic · gitcafe/zig

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

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

Visibility: public

Requested revision: f20305d249af89d266fc87b353164e2e7c056580

Requested commit: f20305d249af89d266fc87b353164e2e7c056580

Commit: f20305d249af89d266fc87b353164e2e7c056580

Tree: 51dc687e82562ea3009eb8c7ea17dbee8afb2b96

Author: LemonBoy

Committer: LemonBoy

## Message

```
gpa: Fix bookkeeping logic

The backing allocator may return a block that's actually bigger than the
one required by the user, use the correct quantity when keeping track of
the allocation ceiling.

Closes #6049

```

## Parents

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

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