summaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-09-23 11:41:52 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-09-23 11:42:49 -0400
commite456c6e18ce47279d429b38f0b348e1a5f2b2beb (patch)
tree84abea6eac269002e7650149cbd3d0b20a304465 /src/alloc.c
parentcf2eb17c48a23d49bf517df58e34e30529c16576 (diff)
downloadbfs-e456c6e18ce47279d429b38f0b348e1a5f2b2beb.tar.xz
Fix spelling
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 223d737..779e1d7 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -108,7 +108,7 @@ void *reserve(void *ptr, size_t align, size_t size, size_t count) {
size_t old_size = size * count;
// Capacity is doubled every power of two, from 0→1, 1→2, 2→4, etc.
- // If we stayed within the same size class, re-use ptr.
+ // If we stayed within the same size class, reuse ptr.
if (count & (count - 1)) {
// Tell sanitizers about the new array element
sanitize_alloc((char *)ptr + old_size, size);