mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
compilation: Add -Wconversion to more files and validate CONV_SOURCES
All files under the os, api and msgpack_rpc directories have -Wconversion automatically applied. CONV_SOURCES is also checked for missing files(when renaming, for example)
This commit is contained in:
@@ -119,7 +119,8 @@ int server_start(const char *endpoint)
|
||||
ip_end = strchr(addr, NUL);
|
||||
}
|
||||
|
||||
uint32_t addr_len = ip_end - addr;
|
||||
// (ip_end - addr) is always > 0, so convert to size_t
|
||||
size_t addr_len = (size_t)(ip_end - addr);
|
||||
|
||||
if (addr_len > sizeof(ip) - 1) {
|
||||
// Maximum length of an IP address buffer is 15(eg: 255.255.255.255)
|
||||
|
Reference in New Issue
Block a user