diff options
author | David Robillard <d@drobilla.net> | 2020-08-14 15:51:19 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-14 19:07:52 +0200 |
commit | 1172f40724d2774be6c9f089c46ef377f2325957 (patch) | |
tree | 5e733b4c6343f6e021f1e8556de670aa465aee70 /src/stack.h | |
parent | 1214fbe49313c2b33b118f8aa3f15dbc2473d8e5 (diff) | |
download | serd-1172f40724d2774be6c9f089c46ef377f2325957.tar.gz serd-1172f40724d2774be6c9f089c46ef377f2325957.tar.bz2 serd-1172f40724d2774be6c9f089c46ef377f2325957.zip |
Make serd_stack_push() return a void pointer
This avoids some unnecessary type punning.
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stack.h b/src/stack.h index e95c5770..9c1d075a 100644 --- a/src/stack.h +++ b/src/stack.h @@ -61,7 +61,7 @@ serd_stack_free(SerdStack* stack) stack->size = 0; } -static inline uint8_t* +static inline void* serd_stack_push(SerdStack* stack, size_t n_bytes) { const size_t new_size = stack->size + n_bytes; |