aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index 4831b89d..4a22a84f 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -94,7 +94,7 @@ push_node_padded(SerdReader* reader, size_t maxlen,
memcpy(buf, str, n_bytes + 1);
#ifdef SERD_STACK_CHECK
- reader->allocs = realloc(
+ reader->allocs = (Ref*)realloc(
reader->allocs, sizeof(reader->allocs) * (++reader->n_allocs));
reader->allocs[reader->n_allocs - 1] = ((uint8_t*)mem - reader->stack.buf);
#endif