Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Fix the last 3 instances of signed/unsigned comparisons.
Browse files Browse the repository at this point in the history
  • Loading branch information
nostrademons committed May 1, 2015
1 parent f62c9dd commit 1af530b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ static void insert_node(
}

assert(index >= 0);
assert(index < children->length);
assert((unsigned int) index < children->length);
node->parent = parent;
node->index_within_parent = index;
gumbo_vector_insert_at(parser, (void*) node, index, children);
Expand Down Expand Up @@ -1264,7 +1264,7 @@ static void reconstruct_active_formatting_elements(GumboParser* parser) {
}

// Step 2 & 3
int i = elements->length - 1;
unsigned int i = elements->length - 1;
GumboNode* element = elements->data[i];
if (element == &kActiveFormattingScopeMarker ||
is_open_element(parser, element)) {
Expand Down

0 comments on commit 1af530b

Please sign in to comment.