Avoid C-style cast.

llvm-svn: 239160
This commit is contained in:
Joerg Sonnenberger 2015-06-05 15:54:26 +00:00
parent 42a0980602
commit 28444b3074
1 changed files with 1 additions and 1 deletions

View File

@ -1657,7 +1657,7 @@ codecvt<wchar_t, char, mbstate_t>::do_in(state_type& st,
frm_nxt = frm;
return frm_nxt == frm_end ? ok : partial;
}
if (n == (size_t)-1)
if (n == size_t(-1))
return error;
to_nxt += n;
if (to_nxt == to_end)