From: Vadim Zeitlin Date: Mon, 22 Sep 2003 12:23:39 +0000 (+0000) Subject: compilation fix (part of patch 810484) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69b80d287d7c620b2d39677ed98114dcee3ab1fe?ds=inline compilation fix (part of patch 810484) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 113c02acfd..ffce9eb418 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -570,9 +570,13 @@ size_t wxMBConvUTF16straight::WC2MB(char *buf, const wchar_t *psz, size_t n) con if (buf) { - *((wxUint16*)buf)++ = cc[0]; + *(wxUint16*)buf = cc[0]; + buf += sizeof(wxUint16); if (pa > 1) - *((wxUint16*)buf)++ = cc[1]; + { + *(wxUint16*)buf = cc[1]; + buf += sizeof(wxUint16); + } } len += pa*sizeof(wxUint16);