Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 1af530b

Browse files
committed
Fix the last 3 instances of signed/unsigned comparisons.
1 parent f62c9dd commit 1af530b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ static void insert_node(
862862
}
863863

864864
assert(index >= 0);
865-
assert(index < children->length);
865+
assert((unsigned int) index < children->length);
866866
node->parent = parent;
867867
node->index_within_parent = index;
868868
gumbo_vector_insert_at(parser, (void*) node, index, children);
@@ -1264,7 +1264,7 @@ static void reconstruct_active_formatting_elements(GumboParser* parser) {
12641264
}
12651265

12661266
// Step 2 & 3
1267-
int i = elements->length - 1;
1267+
unsigned int i = elements->length - 1;
12681268
GumboNode* element = elements->data[i];
12691269
if (element == &kActiveFormattingScopeMarker ||
12701270
is_open_element(parser, element)) {

0 commit comments

Comments
 (0)