mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-13 14:11:04 +00:00
url: Work around Clang miscompile on mips64el
This commit is contained in:
parent
b3c7c43234
commit
0a958deb4c
1 changed files with 4 additions and 1 deletions
|
@ -149,7 +149,10 @@ CanonHostInfo::Family DoIPv4AddressToNumber(const CHAR* spec,
|
||||||
while (true) {
|
while (true) {
|
||||||
// If this is not the first character of a component, go to the next
|
// If this is not the first character of a component, go to the next
|
||||||
// component.
|
// component.
|
||||||
if (current_position != host.begin && spec[current_position - 1] != '.') {
|
// 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] != '.') {
|
||||||
--current_position;
|
--current_position;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue