diff --git a/include/__std_stream b/include/__std_stream index e562e2c4..fa194ea8 100644 --- a/include/__std_stream +++ b/include/__std_stream @@ -150,7 +150,7 @@ __stdinbuf<_CharT>::__getchar(bool __consume) { for (int __i = __nread; __i > 0;) { - if (ungetc(__extbuf[--__i], __file_) == EOF) + if (ungetc(traits_type::to_int_type(__extbuf[--__i]), __file_) == EOF) return traits_type::eof(); } }