]> git.saurik.com Git - wxWidgets.git/commitdiff
added a cast to wxDecodeSurrogate() to fix wxMSW cross-compilation
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Apr 2006 11:27:40 +0000 (11:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Apr 2006 11:27:40 +0000 (11:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index ec964238ebd6935428feee97344c9c5f28cf286a..4e610d300cc2118a49c901f4a9efb97c5ec01ff0 100644 (file)
@@ -150,7 +150,7 @@ static size_t decode_utf16(const wxUint16* input, wxUint32& output)
 static wxUint32 wxDecodeSurrogate(const wxDecodeSurrogate_t **pSrc)
 {
     wxUint32 out;
-    const size_t n = decode_utf16(*pSrc, out);
+    const size_t n = decode_utf16(wx_reinterpret_cast(wxUint16 *, *pSrc), out);
     if ( n == wxCONV_FAILED )
         *pSrc = NULL;
     else