Funky way of writing a constant, let's fold it. Make it clearer what we
are doing and also helps the compiler.
Change-Id: I64e6667347568e0e472b053508c545e5b79fff3a
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
final int n = j - colonp;
for (i = 1; i <= n; i++) {
final int n = j - colonp;
for (i = 1; i <= n; i++) {
- dst[INADDR6SZ - i] = dst[colonp + n - i];
- dst[colonp + n - i] = 0;
+ dst[INADDR6SZ - i] = dst[j - i];
+ dst[j - i] = 0;
}
} else {
Verify.verify(j == INADDR6SZ, "Overrun in parsing of '%s', should not occur", addrStr);
}
} else {
Verify.verify(j == INADDR6SZ, "Overrun in parsing of '%s', should not occur", addrStr);