mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 14:56:10 +03:00
url: Work around Clang miscompile on mips64el
This commit is contained in:
parent
10321df3d9
commit
da5e13e371
@ -149,7 +149,10 @@ CanonHostInfo::Family DoIPv4AddressToNumber(const CHAR* spec,
|
||||
while (true) {
|
||||
// If this is not the first character of a component, go to the next
|
||||
// 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;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user