summaryrefslogtreecommitdiff
path: root/src/houdini_html_u.c
diff options
context:
space:
mode:
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 6e8d620..30d08aa 100644
--- a/src/houdini_html_u.c
+++ b/src/houdini_html_u.c
@@ -16,7 +16,7 @@ static const unsigned char *S_lookup(int i, int low, int hi,
strncmp((const char *)s, (const char *)cmark_entities[i].entity, len);
if (cmp == 0 && cmark_entities[i].entity[len] == 0) {
return (const unsigned char *)cmark_entities[i].bytes;
- } else if (cmp < 0 && i > low) {
+ } else if (cmp <= 0 && i > low) {
j = i - ((i - low) / 2);
if (j == i)
j -= 1;