diff options
author | David Robillard <d@drobilla.net> | 2022-06-28 18:48:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-06-28 19:02:49 -0400 |
commit | 71c4a3a6d66e96661fd341e1a089c4d8bd63fb13 (patch) | |
tree | 615c31e8399736519119ca8b37bc3c97ec2c1242 /test/allocator_test.c | |
parent | 5d62313812b2fee9a4986e6b7ca1af40fb4f2fb6 (diff) | |
download | zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.gz zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.bz2 zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.zip |
Use uppercase integer literal suffixes
I give in.
Diffstat (limited to 'test/allocator_test.c')
-rw-r--r-- | test/allocator_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/allocator_test.c b/test/allocator_test.c index b4aec16..e146de6 100644 --- a/test/allocator_test.c +++ b/test/allocator_test.c @@ -65,14 +65,14 @@ test_bump_allocator(void) char* const malloced = (char*)zix_malloc(&allocator.base, 3); assert(malloced >= buffer); assert(malloced <= buffer + sizeof(buffer)); - assert((uintptr_t)malloced % sizeof(uintmax_t) == 0u); + assert((uintptr_t)malloced % sizeof(uintmax_t) == 0U); assert(!zix_calloc(&allocator.base, 1017, 1)); char* const calloced = (char*)zix_calloc(&allocator.base, 4, 1); assert(calloced > malloced); assert(calloced <= buffer + sizeof(buffer)); - assert((uintptr_t)calloced % sizeof(uintmax_t) == 0u); + assert((uintptr_t)calloced % sizeof(uintmax_t) == 0U); assert(!calloced[0]); assert(!calloced[1]); assert(!calloced[2]); @@ -104,7 +104,7 @@ test_bump_allocator(void) assert(aligned); assert(aligned >= reclaimed); assert(aligned <= buffer + sizeof(buffer)); - assert((uintptr_t)aligned % 128 == 0u); + assert((uintptr_t)aligned % 128 == 0U); zix_aligned_free(&allocator.base, aligned); zix_free(&allocator.base, reclaimed); // Correct, but a noop |