Fixed compile warnings

This commit is contained in:
Jan Haller 2014-04-19 11:47:52 +02:00
parent e9243b7ef6
commit f2ef524b57
2 changed files with 3 additions and 3 deletions

View File

@ -405,7 +405,7 @@ Packet& Packet::operator <<(double data)
Packet& Packet::operator <<(const char* data) Packet& Packet::operator <<(const char* data)
{ {
// First insert string length // First insert string length
Uint32 length = std::strlen(data); Uint32 length = static_cast<Uint32>(std::strlen(data));
*this << length; *this << length;
// Then insert characters // Then insert characters
@ -434,7 +434,7 @@ Packet& Packet::operator <<(const std::string& data)
Packet& Packet::operator <<(const wchar_t* data) Packet& Packet::operator <<(const wchar_t* data)
{ {
// First insert string length // First insert string length
Uint32 length = std::wcslen(data); Uint32 length = static_cast<Uint32>(std::wcslen(data));
*this << length; *this << length;
// Then insert characters // Then insert characters

View File

@ -291,7 +291,7 @@ sf::String JoystickImpl::getDeviceName(unsigned int index, JOYCAPS caps)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
sf::String JoystickImpl::getErrorString(DWORD errorCode) sf::String JoystickImpl::getErrorString(DWORD /*errorCode*/)
{ {
std::basic_ostringstream<TCHAR, std::char_traits<TCHAR> > ss; std::basic_ostringstream<TCHAR, std::char_traits<TCHAR> > ss;
TCHAR errBuff[256]; TCHAR errBuff[256];