summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/entities.inc2
-rw-r--r--src/houdini_html_u.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/entities.inc b/src/entities.inc
index ec3d2a9..a7c36e2 100644
--- a/src/entities.inc
+++ b/src/entities.inc
@@ -6,7 +6,7 @@ struct cmark_entity_node {
};
#define CMARK_ENTITY_MIN_LENGTH 2
-#define CMARK_ENTITY_MAX_LENGTH 31
+#define CMARK_ENTITY_MAX_LENGTH 32
#define CMARK_NUM_ENTITIES 2125
static const struct cmark_entity_node cmark_entities[] = {
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;