get rid of C style casts

This commit is contained in:
Andrzej Rybczak
2009-05-21 23:51:56 +02:00
parent 7eb74a6da2
commit ecd4c8cc17
8 changed files with 18 additions and 18 deletions

View File

@@ -558,7 +558,7 @@ string Window::GetString(const string &base, size_t length, size_t width, bool e
break;
tmp_in += input;
if ((int)mbrtowc(&wc_in, tmp_in.c_str(), MB_CUR_MAX, 0) < 0)
if (int(mbrtowc(&wc_in, tmp_in.c_str(), MB_CUR_MAX, 0)) < 0)
break;
if (wcwidth(wc_in) > 1)