diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index 995d6db..c805eef 100644 --- a/test/unittest/readertest.cpp +++ b/test/unittest/readertest.cpp @@ -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::eof() ? Ch('\0') : static_cast(c); } Ch Take() { - int c = is_.get(); + unsigned c = is_.get(); return c == std::char_traits::eof() ? Ch('\0') : static_cast(c); }