forked from OSchip/llvm-project
Fix up narrowing conversions in switch statement.
llvm-svn: 150082
This commit is contained in:
parent
0c1eea2922
commit
27c8f620ee
|
@ -1409,10 +1409,10 @@ codecvt<wchar_t, char, mbstate_t>::do_in(state_type& st,
|
|||
case 0:
|
||||
++frm;
|
||||
break;
|
||||
case -1:
|
||||
case size_t(-1):
|
||||
frm_nxt = frm;
|
||||
return error;
|
||||
case -2:
|
||||
case size_t(-2):
|
||||
frm_nxt = frm;
|
||||
return partial;
|
||||
default:
|
||||
|
@ -1515,8 +1515,8 @@ codecvt<wchar_t, char, mbstate_t>::do_length(state_type& st,
|
|||
++nbytes;
|
||||
++frm;
|
||||
break;
|
||||
case -1:
|
||||
case -2:
|
||||
case size_t(-1):
|
||||
case size_t(-2):
|
||||
return nbytes;
|
||||
default:
|
||||
nbytes += n;
|
||||
|
|
Loading…
Reference in New Issue