summaryrefslogtreecommitdiff
path: root/src/houdini_html_u.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-16 13:24:05 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-16 13:24:05 -0700
commit9f1bb45d9b1a43daa229714d4eb83e981a187f92 (patch)
tree357fb379c8273dc6ba6cefecb0b49eb9a4a8daea /src/houdini_html_u.c
parent9ae4975fc049de433ad8e2399c391d207208233a (diff)
entities: Make the first entity in the array (TripleDot) work.
We now use -1 instead of 0 to indicate leaf nodes.
Diffstat (limited to 'src/houdini_html_u.c')
-rw-r--r--src/houdini_html_u.c2
1 files changed, 1 insertions, 1 deletions
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);