]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct format specifiers used to show wxIPV4address.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Jul 2010 11:26:14 +0000 (11:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Jul 2010 11:26:14 +0000 (11:26 +0000)
wxIPV4address::IPAddress() used %lu to show each of (byte-sized) IPv4 address
components for some reason, which resulted in asserts about format specifier
mismatch. Fix this by just using %u.

Closes #12272.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sckaddr.cpp

index ea2fc9d89f11b15e1b92f2a8dad11f0c8a9f0155..67ca3fbcdfa77af4a5a368ad4eb55a98f3d90bac 100644 (file)
@@ -878,7 +878,7 @@ wxString wxIPV4address::IPAddress() const
 
     return wxString::Format
            (
-            "%lu.%lu.%lu.%lu",
+            "%u.%u.%u.%u",
             (addr >> 24) & 0xff,
             (addr >> 16) & 0xff,
             (addr >> 8) & 0xff,