mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
One more fix for PVS-Studio
This commit is contained in:
parent
5ffcaa462a
commit
e64e520e5b
@ -153,7 +153,7 @@ void formatIPv6(const unsigned char * src, char *& dst, UInt8 zeroed_tail_bytes_
|
||||
}
|
||||
|
||||
/// Was it a trailing run of 0x00's?
|
||||
if (best.base != -1 && size_t(best.base + best.len) == words.size())
|
||||
if (best.base != -1 && size_t(best.base) + size_t(best.len) == words.size())
|
||||
*dst++ = ':';
|
||||
|
||||
*dst++ = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user