compilation fix for iconv call

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-02 15:59:57 +00:00
parent eb257f65ed
commit 39406a5d05

View File

@@ -1689,9 +1689,9 @@ size_t wxMBConv_iconv::GetMinMBCharWidth() const
char buf[8]; // should be enough for NUL in any encoding
size_t inLen = sizeof(wchar_t),
outLen = WXSIZEOF(buf);
const char *in = (char *)wnul;
char *in = (char *)wnul;
char *out = buf;
if ( iconv(w2m, &in, &inLen, &out, &outLen) == (size_t)-1 )
if ( iconv(w2m, ICONV_CHAR_CAST(&in), &inLen, &out, &outLen) == (size_t)-1 )
{
self->m_minMBCharWidth = (size_t)-1;
}