]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix (part of patch 810484)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Sep 2003 12:23:39 +0000 (12:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Sep 2003 12:23:39 +0000 (12:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 113c02acfd93855683ca16ec42cd344e1e5c00ad..ffce9eb4187cefa75222f4bebad621bf99eac817 100644 (file)
@@ -570,9 +570,13 @@ size_t wxMBConvUTF16straight::WC2MB(char *buf, const wchar_t *psz, size_t n) con
 
         if (buf)
         {
 
         if (buf)
         {
-            *((wxUint16*)buf)++ = cc[0];
+            *(wxUint16*)buf = cc[0];
+            buf += sizeof(wxUint16); 
             if (pa > 1)
             if (pa > 1)
-                *((wxUint16*)buf)++ = cc[1];
+            {
+                *(wxUint16*)buf = cc[1];
+                buf += sizeof(wxUint16);
+            }
         }
 
         len += pa*sizeof(wxUint16);
         }
 
         len += pa*sizeof(wxUint16);