diff --git a/src/char_ref.c b/src/char_ref.c index e693e04..bb4a177 100644 --- a/src/char_ref.c +++ b/src/char_ref.c @@ -23037,7 +23037,7 @@ static bool consume_named_ref( if (cs >= 7623) { assert(output->first != kGumboNoChar); char last_char = *(te - 1); - int len = te - start; + int len = (int) (te - start); if (last_char == ';') { bool matched = utf8iterator_maybe_consume_match(input, start, len, true); assert(matched);