From 9f1bb45d9b1a43daa229714d4eb83e981a187f92 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 16 Jun 2015 13:24:05 -0700 Subject: entities: Make the first entity in the array (TripleDot) work. We now use -1 instead of 0 to indicate leaf nodes. --- src/houdini_html_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/houdini_html_u.c') diff --git a/src/houdini_html_u.c b/src/houdini_html_u.c index c8e4b93..51e3565 100644 --- a/src/houdini_html_u.c +++ b/src/houdini_html_u.c @@ -30,7 +30,7 @@ S_lookup(int i, unsigned long key) } else { int next = key < cmark_entities[i].value ? cmark_entities[i].less : cmark_entities[i].greater; - if (next == 0) { + if (next == -1) { // leaf node return NULL; } else { return S_lookup(next, key); -- cgit v1.2.3