mirror of https://github.com/odrling/Aegisub
Cast the correct parameter when ICONV_POSIX is defined
Originally committed to SVN as r4474.
This commit is contained in:
parent
612b583e2b
commit
de974fb723
|
@ -75,7 +75,7 @@ class IconvWrapper::Converter {
|
||||||
public:
|
public:
|
||||||
Converter(bool, const char*) { }
|
Converter(bool, const char*) { }
|
||||||
size_t operator()(iconv_t cd, const char** inbuf, size_t* inbytesleft, char** outbuf, size_t* outbytesleft) {
|
size_t operator()(iconv_t cd, const char** inbuf, size_t* inbytesleft, char** outbuf, size_t* outbytesleft) {
|
||||||
return iconv(cd, inbuf, ICONV_CONST_CAST(inbytesleft), outbuf, outbytesleft);
|
return iconv(cd, ICONV_CONST_CAST(inbuf), inbytesleft, outbuf, outbytesleft);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue