From 59bcd222c3ef1a64045e27db24ffddeb99ee29d4 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 10 Aug 2015 09:53:46 -0700 Subject: Remove need to disable MSVC warning 4800 --- src/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index ad12d63..c5f4553 100644 --- a/src/node.c +++ b/src/node.c @@ -426,7 +426,7 @@ int cmark_node_set_list_tight(cmark_node *node, int tight) { } if (node->type == CMARK_NODE_LIST) { - node->as.list.tight = tight; + node->as.list.tight = tight == 1; return 1; } else { return 0; -- cgit v1.2.3 From 6c51eb5a98521cc2f94dd0139a17f72e025ecfe8 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 10 Aug 2015 10:07:54 -0700 Subject: Remove need to disable MSVC warning 4244 --- src/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index c5f4553..46d234a 100644 --- a/src/node.c +++ b/src/node.c @@ -717,7 +717,7 @@ int cmark_node_check(cmark_node *node, FILE *out) { } cur = node; - while (true) { + for (;;) { if (cur->first_child) { if (cur->first_child->prev != NULL) { S_print_error(out, cur->first_child, "prev"); -- cgit v1.2.3