Skip to content

Commit

Permalink
Revert "mipsel: url: Work around Clang miscompile"
Browse files Browse the repository at this point in the history
This reverts commit 77d05b9.
  • Loading branch information
klzgrad committed Oct 7, 2024
1 parent 75fcf18 commit 3c6bc7c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/url/url_canon_ip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ CanonHostInfo::Family DoIPv4AddressToNumber(const CHAR* spec,
while (true) {
// If this is not the first character of a component, go to the next
// component.
// XXX: On mips64el, using
// `current_position != host.begin && spec[current_position - 1] != '.'`
// would have current_position going to the negative.
if (current_position > host.begin && spec[current_position - 1] != '.') {
if (current_position != host.begin && spec[current_position - 1] != '.') {
--current_position;
continue;
}
Expand Down

0 comments on commit 3c6bc7c

Please sign in to comment.