diff options
-rw-r--r-- | libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp index 0c513806303..3c9c0d35db2 100644 --- a/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp @@ -112,6 +112,7 @@ int main() assert(f.egptr() - f.gptr() == 1); } { + typedef std::char_traits<wchar_t> Traits; test_buf<wchar_t> f; f.pubimbue(std::locale(LOCALE_en_US_UTF_8)); assert(f.open("underflow_utf8.dat", std::ios_base::in) != 0); @@ -119,6 +120,6 @@ int main() assert(f.sbumpc() == 0x4E51); assert(f.sbumpc() == 0x4E52); assert(f.sbumpc() == 0x4E53); - assert(f.sbumpc() == static_cast<unsigned>(-1)); + assert(f.sbumpc() == static_cast<Traits::int_type>(-1)); } } |