summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-08-10 20:19:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-08-10 20:19:09 -0700
commit735098e097ad62bdc4b1121c6c0c983eb7483485 (patch)
treea858fedc30e6149ed430784942413a2b06741ec9 /src/blocks.c
parenta541e39f69cfa75422fbe70c59c2ac40fbdbe1d7 (diff)
parentce0e58469f7c4abf3f51bde6d3298215d6ef99d1 (diff)
Merge pull request #76 from kainjow/msvc-warnings
Fix some MSVC warnings
Diffstat (limited to 'src/blocks.c')
-rwxr-xr-xsrc/blocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 6d3053b..49ac273 100755
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -774,7 +774,7 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer,
container->as.code.fenced = true;
container->as.code.fence_char = peek_at(&input, parser->first_nonspace);
container->as.code.fence_length = matched;
- container->as.code.fence_offset = parser->first_nonspace - parser->offset;
+ container->as.code.fence_offset = (int8_t)(parser->first_nonspace - parser->offset);
container->as.code.info = cmark_chunk_literal("");
S_advance_offset(parser, &input,
parser->first_nonspace + matched - parser->offset,