wxASSERT_MSG( n >= 0 && n <= 0xff, "unexpected character value" );
- c = wx_static_cast(char, n);
+ c = static_cast<char>(n);
}
*p = c;
{
m_hostType = wxURI_IPV6ADDRESS;
- m_server.assign(start, uri - start - 1);
+ m_server.assign(start + 1, uri - start - 1);
++uri;
}
else
{
m_hostType = wxURI_IPVFUTURE;
- m_server.assign(start, uri - start - 1);
+ m_server.assign(start + 1, uri - start - 1);
++uri;
}
else // unrecognized IP literal
{
m_hostType = wxURI_IPV4ADDRESS;
- m_server.assign(start, uri - start - 1);
+ m_server.assign(start, uri - start);
}
else
{