Skip to content

Commit e0512e0

Browse files
committed
Using unsigned for WIStreamWrapper
1 parent 7fac34f commit e0512e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unittest/readertest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,12 +1399,12 @@ class WIStreamWrapper {
13991399
WIStreamWrapper(std::wistream& is) : is_(is) {}
14001400

14011401
Ch Peek() const {
1402-
int c = is_.peek();
1402+
unsigned c = is_.peek();
14031403
return c == std::char_traits<wchar_t>::eof() ? Ch('\0') : static_cast<Ch>(c);
14041404
}
14051405

14061406
Ch Take() {
1407-
int c = is_.get();
1407+
unsigned c = is_.get();
14081408
return c == std::char_traits<wchar_t>::eof() ? Ch('\0') : static_cast<Ch>(c);
14091409
}
14101410

0 commit comments

Comments
 (0)