summaryrefslogtreecommitdiff
path: root/src/html.c
diff options
context:
space:
mode:
authorKevin Wojniak <kainjow@kainjow.com>2015-08-10 10:06:14 -0700
committerKevin Wojniak <kainjow@kainjow.com>2015-08-10 10:06:14 -0700
commit722bc5df7e7bde6ec865b991e500aca04c931ad5 (patch)
tree24b01e07e7b5921fb415011e3db41e5aad669b34 /src/html.c
parent59bcd222c3ef1a64045e27db24ffddeb99ee29d4 (diff)
Remove need to disable MSVC warning 4244
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.c b/src/html.c
index e365c8c..dfe2aec 100644
--- a/src/html.c
+++ b/src/html.c
@@ -130,12 +130,12 @@ static int S_render_node(cmark_node *node, cmark_event_type ev_type,
case CMARK_NODE_HEADER:
if (entering) {
cr(html);
- start_header[2] = '0' + node->as.header.level;
+ start_header[2] = (char)('0' + node->as.header.level);
cmark_strbuf_puts(html, start_header);
S_render_sourcepos(node, html, options);
cmark_strbuf_putc(html, '>');
} else {
- end_header[3] = '0' + node->as.header.level;
+ end_header[3] = (char)('0' + node->as.header.level);
cmark_strbuf_puts(html, end_header);
cmark_strbuf_puts(html, ">\n");
}