From e0512e0944792368f377cfee2b95e9e959eefd70 Mon Sep 17 00:00:00 2001 From: Kyrega Date: Tue, 10 Aug 2021 09:40:03 +0200 Subject: Using unsigned for WIStreamWrapper --- test/unittest/readertest.cpp | 4 ++-- 1 file 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::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); } -- cgit v1.2.3