Add (const char**) cast to inptr in iconv to silence warning.

Originally committed to SVN as r3462.
This commit is contained in:
Amar Takhar 2009-09-02 08:41:29 +00:00
parent a02a63c4e5
commit 256671d666

View file

@ -160,7 +160,7 @@ wchar_t TextFileReader::GetWChar() {
return 0; return 0;
do { do {
size_t ret = iconv(conv, &inptr, &inbytesleft, reinterpret_cast<char **>(&outptr), &outbytesleft); size_t ret = iconv(conv, (const char**)&inptr, &inbytesleft, reinterpret_cast<char **>(&outptr), &outbytesleft);
if (ret != (size_t)-1) break; if (ret != (size_t)-1) break;
int err = errno; int err = errno;