From dbd6d77cdde9e2f38558a06d9e0fcc1482d84558 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 17 Oct 2011 10:48:47 +0200 Subject: [PATCH] Fix signed/unsigned comparison warning --- src/stringfunc.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/stringfunc.cpp b/src/stringfunc.cpp index 1b48adf..b3fb22f 100644 --- a/src/stringfunc.cpp +++ b/src/stringfunc.cpp @@ -632,7 +632,7 @@ wchar_t* utf8_to_wbuf(const std::string& utf8string) char *in = (char *)utf8string.c_str(); char *out = (char*) buf; - if (iconv(utf82wstr, &in, &in_size, &out, &out_size) == -1) + if (iconv(utf82wstr, &in, &in_size, &out, &out_size) == (size_t)-1) throw runtime_error("error converting char encodings"); buf[ ( (utf8string.size()+1)*sizeof(wchar_t)-out_size) /sizeof(wchar_t) ]=0; -- 1.7.1