aboutsummaryrefslogtreecommitdiffstats
path: root/src/stack.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 20:45:52 +0200
committerDavid Robillard <d@drobilla.net>2018-12-31 11:37:48 -0500
commitaa82276f036d5fadf02abb77e689e2aa384043e3 (patch)
treece7f076a076e719a07cd2d71ad97a4df948cae8d /src/stack.h
parent32604d573a456c52ef104211a078d6e2ae7e1d9f (diff)
downloadserd-aa82276f036d5fadf02abb77e689e2aa384043e3.tar.gz
serd-aa82276f036d5fadf02abb77e689e2aa384043e3.tar.bz2
serd-aa82276f036d5fadf02abb77e689e2aa384043e3.zip
Fix warnings
Diffstat (limited to 'src/stack.h')
-rw-r--r--src/stack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stack.h b/src/stack.h
index 5c84df37..c703fce4 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -90,7 +90,7 @@ static inline void*
serd_stack_push_aligned(SerdStack* stack, size_t n_bytes, size_t align)
{
// Push padding if necessary
- const uint8_t pad = align - stack->size % align;
+ const size_t pad = align - stack->size % align;
if (pad > 0) {
void* padding = serd_stack_push(stack, pad);
if (!padding) {