diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-13 15:44:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-13 15:44:05 -0700 |
commit | 5ac912dbe9ee7e998154ffd9652533059c38706f (patch) | |
tree | cf8f8448eb90a558518f4b516dfe08d4b847b186 /system/lib/libcxx/locale.cpp | |
parent | c0b7050981a4033caf2cdca2a94e84270b4997e1 (diff) | |
parent | 3a252e1924784cfc262b4e2b41ba23f0aaa454e8 (diff) |
Merge pull request #497 from imvu/c++11
Fix C++11 support in libcxx
Diffstat (limited to 'system/lib/libcxx/locale.cpp')
-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; |