summaryrefslogtreecommitdiff
path: root/src/node.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-05 10:05:27 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-05 10:05:27 -0800
commite176f939862d4846859ce3ad3a003b38d98a6424 (patch)
tree1c396bb59a49625b14e8513f616539a29d6caacb /src/node.c
parent6baeaf39441895c0374974d96da84f2e3979cfb2 (diff)
Changed CMARK_NODE_NONE from -1 to 0.
This is more consistent with CMARK_LIST_NONE, etc.
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index 0991a9d..9e83ed3 100644
--- a/src/node.c
+++ b/src/node.c
@@ -88,6 +88,7 @@ static const char*
S_type_string(cmark_node *node)
{
switch (node->type) {
+ case CMARK_NODE_NONE: return "NONE";
case CMARK_NODE_DOCUMENT: return "DOCUMENT";
case CMARK_NODE_BLOCK_QUOTE: return "BLOCK_QUOTE";
case CMARK_NODE_LIST: return "LIST";
@@ -107,7 +108,6 @@ S_type_string(cmark_node *node)
case CMARK_NODE_STRONG: return "STRONG";
case CMARK_NODE_LINK: return "LINK";
case CMARK_NODE_IMAGE: return "IMAGE";
- case CMARK_NODE_NONE: return "NONE";
}
return "<unknown>";