]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
invalidate best size cache when GTK style changes
[wxWidgets.git] / src / common / sckaddr.cpp
index 3ac7e22d9f2555f3e3abb18b3e79d630198669be..f158a557682af8a0b7daf16413039a49aa181ed8 100644 (file)
@@ -211,10 +211,10 @@ wxString wxIPV4address::IPAddress() const
        unsigned long raw =  GAddress_INET_GetHostAddress(m_address);
        return wxString::Format(
                _T("%u.%u.%u.%u"),
-               (unsigned char)(raw & 0xff),
-               (unsigned char)((raw>>8) & 0xff),
+               (unsigned char)((raw>>24) & 0xff),
                (unsigned char)((raw>>16) & 0xff),
-               (unsigned char)((raw>>24) & 0xff)
+               (unsigned char)((raw>>8) & 0xff),
+               (unsigned char)(raw & 0xff)
                );
 }
 
@@ -288,10 +288,10 @@ wxString wxIPV6address::IPAddress() const
        unsigned long raw =  GAddress_INET_GetHostAddress(m_address);
        return wxString::Format(
                _T("%u.%u.%u.%u"),
-               (unsigned char)(raw & 0xff),
-               (unsigned char)((raw>>8) & 0xff),
+               (unsigned char)((raw>>24) & 0xff),
                (unsigned char)((raw>>16) & 0xff),
-               (unsigned char)((raw>>24) & 0xff)
+               (unsigned char)((raw>>8) & 0xff),
+               (unsigned char)(raw & 0xff)
                );
 }