diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-24 21:09:09 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-24 21:09:09 +0100 |
commit | f222b8e2ef1ffcd18c6093cd1272fd9e8b757291 (patch) | |
tree | e4a02a0a7e25bb214f9fe5964636ac83a4988a7a /src/blocks.c | |
parent | 6291b2340055acfc5487141af5c1adb76cdf0662 (diff) |
Cast void* for MSVC compatibility
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 3 |
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; |