aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-15 13:48:57 +0200
committerDavid Robillard <d@drobilla.net>2020-08-15 22:52:05 +0200
commitfa37911d98cb04665f8a35feb62bb4ee4af46917 (patch)
treefd95b2d29bcbf0c8d5ff7b9fc2c593dd8c0c49fd
parent92c783d6a5c80af365434c28d9c4717e7e31a1e0 (diff)
downloadserd-fa37911d98cb04665f8a35feb62bb4ee4af46917.tar.gz
serd-fa37911d98cb04665f8a35feb62bb4ee4af46917.tar.bz2
serd-fa37911d98cb04665f8a35feb62bb4ee4af46917.zip
Fix stack check C++ compatibility
-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