diff options
Diffstat (limited to 'system/include/libcxx/istream')
-rw-r--r-- | system/include/libcxx/istream | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/system/include/libcxx/istream b/system/include/libcxx/istream index 3f629f68..f3e74c38 100644 --- a/system/include/libcxx/istream +++ b/system/include/libcxx/istream @@ -1144,8 +1144,7 @@ basic_istream<_CharT, _Traits>::ignore(streamsize __n, int_type __dlm) break; } ++__gc_; - char_type __ch = traits_type::to_char_type(__i); - if (traits_type::eq(__ch, static_cast<char_type>(__dlm))) + if (traits_type::eq_int_type(__i, __dlm)) break; } } @@ -1160,8 +1159,7 @@ basic_istream<_CharT, _Traits>::ignore(streamsize __n, int_type __dlm) break; } ++__gc_; - char_type __ch = traits_type::to_char_type(__i); - if (traits_type::eq(__ch, static_cast<char_type>(__dlm))) + if (traits_type::eq_int_type(__i, __dlm)) break; } } |