aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-08 19:23:55 +0000
committerDavid Robillard <d@drobilla.net>2012-03-08 19:23:55 +0000
commit8c2b149cb21164028feefa1574238927aac1b0b9 (patch)
tree7c94401ed50fbeb9d7eb5ad076303844cacadc75 /src/writer.c
parent44177f8c18af89540b90a1cfa38ddda84fc6f747 (diff)
downloadserd-8c2b149cb21164028feefa1574238927aac1b0b9.tar.gz
serd-8c2b149cb21164028feefa1574238927aac1b0b9.tar.bz2
serd-8c2b149cb21164028feefa1574238927aac1b0b9.zip
Fix compilation in VC++.
git-svn-id: http://svn.drobilla.net/serd/trunk@334 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c
index 849d4e7c..f538e486 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -243,7 +243,8 @@ write_text(SerdWriter* writer, TextContext ctx,
static size_t
uri_sink(const void* buf, size_t len, void* stream)
{
- return write_text((SerdWriter*)stream, WRITE_URI, buf, len);
+ return write_text((SerdWriter*)stream, WRITE_URI,
+ (const uint8_t*)buf, len);
}
static void
@@ -746,7 +747,7 @@ size_t
serd_chunk_sink(const void* buf, size_t len, void* stream)
{
SerdChunk* chunk = (SerdChunk*)stream;
- chunk->buf = realloc((uint8_t*)chunk->buf, chunk->len + len);
+ chunk->buf = (uint8_t*)realloc((uint8_t*)chunk->buf, chunk->len + len);
memcpy((uint8_t*)chunk->buf + chunk->len, buf, len);
chunk->len += len;
return len;