Fix Visual Studio warnings.
This commit is contained in:
parent
9975b4e4cd
commit
a07b0e5953
21 changed files with 43 additions and 39 deletions
|
@ -121,7 +121,7 @@ bool Url::parse(const char *url)
|
|||
memcpy(m_host, base, size - 1);
|
||||
m_host[size - 1] = '\0';
|
||||
|
||||
m_port = strtol(port, nullptr, 10);
|
||||
m_port = (uint16_t) strtol(port, nullptr, 10);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue