diff options
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); |