Skip to content

Commit

Permalink
Cast void to iconv_t (needed on Solaris)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 12, 2016
1 parent 0d5e9dc commit b8908a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.h
Expand Up @@ -12,7 +12,7 @@ class hunspell_dict {

private:
iconv_t new_iconv(const char * from, const char * to){
iconv_t cd = Riconv_open(to, from);
iconv_t cd = (iconv_t) Riconv_open(to, from);
if(cd == (iconv_t) -1){
switch(errno){
case EINVAL: throw std::runtime_error(std::string("Unsupported iconv conversion: ") + from + "to" + to);
Expand Down

0 comments on commit b8908a8

Please sign in to comment.