summaryrefslogtreecommitdiffstats
path: root/src/bump_allocator.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-28 18:48:41 -0400
committerDavid Robillard <d@drobilla.net>2022-06-28 19:02:49 -0400
commit71c4a3a6d66e96661fd341e1a089c4d8bd63fb13 (patch)
tree615c31e8399736519119ca8b37bc3c97ec2c1242 /src/bump_allocator.c
parent5d62313812b2fee9a4986e6b7ca1af40fb4f2fb6 (diff)
downloadzix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.gz
zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.bz2
zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.zip
Use uppercase integer literal suffixes
I give in.
Diffstat (limited to 'src/bump_allocator.c')
-rw-r--r--src/bump_allocator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bump_allocator.c b/src/bump_allocator.c
index d6d1c41..eedd3e9 100644
--- a/src/bump_allocator.c
+++ b/src/bump_allocator.c
@@ -16,9 +16,9 @@ static size_t
round_up_multiple(const size_t number, const size_t factor)
{
assert(factor); // Factor must be non-zero
- assert((factor & (factor - 1)) == 0u); // Factor must be a power of two
+ assert((factor & (factor - 1)) == 0U); // Factor must be a power of two
- return (number + factor - 1u) & ~(factor - 1u);
+ return (number + factor - 1U) & ~(factor - 1U);
}
ZIX_MALLOC_FUNC
@@ -100,7 +100,7 @@ zix_bump_aligned_alloc(ZixAllocator* const allocator,
const size_t old_top = state->top;
assert(alignment >= min_alignment);
- assert(size % alignment == 0u);
+ assert(size % alignment == 0U);
/* First, calculate how much we need to offset the top to achieve this
alignment. Note that it's not the offset that needs to be aligned (since