summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/gumbo/char_ref.rl
diff options
context:
space:
mode:
Diffstat (limited to 'libs/litehtml/src/gumbo/char_ref.rl')
-rw-r--r--libs/litehtml/src/gumbo/char_ref.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/litehtml/src/gumbo/char_ref.rl b/libs/litehtml/src/gumbo/char_ref.rl
index 7c1c410d93..139a4bbd33 100644
--- a/libs/litehtml/src/gumbo/char_ref.rl
+++ b/libs/litehtml/src/gumbo/char_ref.rl
@@ -2493,7 +2493,7 @@ static bool consume_named_ref(
if (cs >= %%{ write first_final; }%%) {
assert(output->first != kGumboNoChar);
char last_char = *(te - 1);
- ptrdiff_t len = te - start;
+ int len = te - start;
if (last_char == ';') {
bool matched = utf8iterator_maybe_consume_match(input, start, len, true);
assert(matched);