diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-24 01:43:54 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-24 01:43:54 +0000 |
commit | 059b08a6b9fe7e150dd435140e8bec931ebbd2a7 (patch) | |
tree | 41e86ad197768de8affc76eeb76482494db2d313 | |
parent | 2bc3471d409e4d38194a5284da85bc54e672f3e4 (diff) | |
download | bcm5719-llvm-059b08a6b9fe7e150dd435140e8bec931ebbd2a7.tar.gz bcm5719-llvm-059b08a6b9fe7e150dd435140e8bec931ebbd2a7.zip |
Fix warning caused by platforms providing a signed wint_t
llvm-svn: 290477
-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)); } } |