aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-14 15:51:19 +0200
committerDavid Robillard <d@drobilla.net>2020-08-14 19:07:52 +0200
commit1172f40724d2774be6c9f089c46ef377f2325957 (patch)
tree5e733b4c6343f6e021f1e8556de670aa465aee70 /src/reader.h
parent1214fbe49313c2b33b118f8aa3f15dbc2473d8e5 (diff)
downloadserd-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/reader.h')
-rw-r--r--src/reader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.h b/src/reader.h
index 1b0a80c2..3ed4ecc8 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -169,7 +169,7 @@ push_byte(SerdReader* reader, Ref ref, const int c)
assert(c != EOF);
SERD_STACK_ASSERT_TOP(reader, ref);
- uint8_t* const s = serd_stack_push(&reader->stack, 1);
+ uint8_t* const s = (uint8_t*)serd_stack_push(&reader->stack, 1);
SerdNode* const node = (SerdNode*)(reader->stack.buf + ref);
++node->n_bytes;
if (!(c & 0x80)) { // Starts with 0 bit, start of new character