diff options
author | Chad Austin <chad@chadaustin.me> | 2012-07-03 10:34:39 -0700 |
---|---|---|
committer | Chad Austin <aegis@aegisknight.org> | 2012-07-03 18:37:28 -0700 |
commit | 3a252e1924784cfc262b4e2b41ba23f0aaa454e8 (patch) | |
tree | 51c0a1b3f13859ea80c4f985a293aa6bb7e94b95 /system/lib | |
parent | 773dca2ae0b2b6ed73189d276255c833b81f29ee (diff) |
Fix C++11 support in libcxx
Diffstat (limited to 'system/lib')
-rw-r--r-- | system/lib/libcxx/locale.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/lib/libcxx/locale.cpp b/system/lib/libcxx/locale.cpp index 4675fec3..f94ed45a 100644 --- a/system/lib/libcxx/locale.cpp +++ b/system/lib/libcxx/locale.cpp @@ -1418,10 +1418,10 @@ codecvt<wchar_t, char, mbstate_t>::do_in(state_type& st, case 0: ++frm; break; - case -1: + case static_cast<size_t>(-1): frm_nxt = frm; return error; - case -2: + case static_cast<size_t>(-2): frm_nxt = frm; return partial; default: @@ -1524,8 +1524,8 @@ codecvt<wchar_t, char, mbstate_t>::do_length(state_type& st, ++nbytes; ++frm; break; - case -1: - case -2: + case static_cast<size_t>(-1): + case static_cast<size_t>(-2): return nbytes; default: nbytes += n; |