Commit ef64fd389865b877cc91aaf80e81c66415617556

Martin Mitas 2019-05-13T10:46:50

render_html.c: Improve RENDER_LITERAL to not cause warnings in MSVC 2017.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md2html/render_html.c b/md2html/render_html.c
index 9fc62f8..12bb1cb 100644
--- a/md2html/render_html.c
+++ b/md2html/render_html.c
@@ -69,7 +69,7 @@ render_text(MD_RENDER_HTML* r, const MD_CHAR* text, MD_SIZE size)
     r->process_output(text, size, r->userdata);
 }
 
-#define RENDER_LITERAL(r, literal)    render_text((r), (literal), strlen(literal))
+#define RENDER_LITERAL(r, literal)    render_text((r), (literal), (MD_SIZE) strlen(literal))
 
 
 static void