diff options
author | David Robillard <d@drobilla.net> | 2024-06-24 15:03:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-25 15:54:43 -0400 |
commit | 72ab488af39cd487a5cefc862e3e2d3466facff3 (patch) | |
tree | abc7cffe63594828e64d40de25219af8ea8b5e92 /src/stack.h | |
parent | 47f30703ee6935de393303b7a4d6bab8ce7780f4 (diff) | |
download | serd-72ab488af39cd487a5cefc862e3e2d3466facff3.tar.gz serd-72ab488af39cd487a5cefc862e3e2d3466facff3.tar.bz2 serd-72ab488af39cd487a5cefc862e3e2d3466facff3.zip |
Clean up redundant and/or inconsistent conditionals
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stack.h b/src/stack.h index d118430a..388dd054 100644 --- a/src/stack.h +++ b/src/stack.h @@ -78,9 +78,7 @@ serd_stack_push_aligned(SerdStack* stack, size_t n_bytes, size_t align) // Push padding if necessary const size_t pad = align - stack->size % align; - if (pad > 0) { - serd_stack_push(stack, pad); - } + serd_stack_push(stack, pad); // Set top of stack to pad count so we can properly pop later assert(pad < UINT8_MAX); |