diff options
author | Kyrega <philipp.stefan.womser@sap.com> | 2021-08-10 10:40:03 +0300 |
---|---|---|
committer | Kyrega <philipp.stefan.womser@sap.com> | 2021-08-10 18:36:31 +0300 |
commit | e0512e0944792368f377cfee2b95e9e959eefd70 (patch) | |
tree | 2b47e7adc07343a9e3958df472625b8aefb99cde | |
parent | 7fac34f7bbe451b10ab70c08cf6820387f7a1d92 (diff) |
Using unsigned for WIStreamWrapper
-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); } |