diff options
-rw-r--r-- | test/unittest/readertest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index 995d6db8..c805eef0 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<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); } |