inet_pton.c: Fix MSVC run-time check failure (2)
This fixes another run-time check failure because of a narrowing cast on Visual C++. Closes #408
This commit is contained in:
Родитель
cb6a07fed0
Коммит
668231c309
|
@ -206,7 +206,7 @@ inet_pton6(const char *src, unsigned char *dst)
|
|||
if(tp + INT16SZ > endp)
|
||||
return (0);
|
||||
*tp++ = (unsigned char) (val >> 8) & 0xff;
|
||||
*tp++ = (unsigned char) val & 0xff;
|
||||
*tp++ = (unsigned char) (val & 0xff);
|
||||
}
|
||||
if(colonp != NULL) {
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче