Using unsigned for WIStreamWrapper

This commit is contained in:
Kyrega 2021-08-10 09:40:03 +02:00
parent 7fac34f7bb
commit e0512e0944

View File

@ -1399,12 +1399,12 @@ public:
WIStreamWrapper(std::wistream& is) : is_(is) {}
Ch Peek() const {
int c = is_.peek();
unsigned c = is_.peek();
return c == std::char_traits<wchar_t>::eof() ? Ch('\0') : static_cast<Ch>(c);
}
Ch Take() {
int c = is_.get();
unsigned c = is_.get();
return c == std::char_traits<wchar_t>::eof() ? Ch('\0') : static_cast<Ch>(c);
}