summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2015-06-07 13:15:07 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2015-06-07 21:42:14 +0200
commit019128a8e7f74344cc03e001e8b7286b42a03002 (patch)
tree00c4c3b01492a1a12c62f17a2c12055933c0d56b /src
parentab70512ccc78abf392837a63b0091a02b4d047fb (diff)
Switch cmark_markdown_to_html over to size_t
Diffstat (limited to 'src')
-rw-r--r--src/cmark.c2
-rw-r--r--src/cmark.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmark.c b/src/cmark.c
index 79ceabf..35765b1 100644
--- a/src/cmark.c
+++ b/src/cmark.c
@@ -9,7 +9,7 @@
const int cmark_version = CMARK_VERSION;
const char cmark_version_string[] = CMARK_VERSION_STRING;
-char *cmark_markdown_to_html(const char *text, int len, int options)
+char *cmark_markdown_to_html(const char *text, size_t len, int options)
{
cmark_node *doc;
char *result;
diff --git a/src/cmark.h b/src/cmark.h
index 84c6f76..d86e13e 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -24,7 +24,7 @@ extern "C" {
* UTF-8-encoded string.
*/
CMARK_EXPORT
-char *cmark_markdown_to_html(const char *text, int len, int options);
+char *cmark_markdown_to_html(const char *text, size_t len, int options);
/** ## Node Structure
*/