summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-24 21:09:09 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-24 21:09:09 +0100
commitf222b8e2ef1ffcd18c6093cd1272fd9e8b757291 (patch)
treee4a02a0a7e25bb214f9fe5964636ac83a4988a7a
parent6291b2340055acfc5487141af5c1adb76cdf0662 (diff)
Cast void* for MSVC compatibility
-rw-r--r--src/blocks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 5328638..6f995b3 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -439,7 +439,8 @@ extern cmark_node *cmark_parse_document(const char *buffer, size_t len)
cmark_node *document;
while (buffer < end) {
- const char *eol = memchr(buffer, '\n', end - buffer);
+ const char *eol
+ = (const char *)memchr(buffer, '\n', end - buffer);
offset = eol ? (eol - buffer) + 1 : end - buffer;
cmark_process_line(parser, buffer, offset);
buffer += offset;