Fix fallbacks for invalid characters when converting charsets

r6632 made ConverterImpl have a vtable, which makes the iconv_fallbacks
parent no longer the first thing in the object, so add an explicit cast.

Originally committed to SVN as r6639.
This commit is contained in:
Thomas Goyne 2012-03-31 00:28:55 +00:00
parent 2d9213cdfc
commit e6697b1923

View file

@ -241,7 +241,7 @@ namespace {
int transliterate = 1;
iconvctl(cd, ICONV_SET_TRANSLITERATE, &transliterate);
iconvctl(cd, ICONV_SET_FALLBACKS, this);
iconvctl(cd, ICONV_SET_FALLBACKS, static_cast<iconv_fallbacks*>(this));
}
}
~ConverterImpl() {