diff options
Diffstat (limited to 'libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp')
-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 9ada23b4546..0c513806303 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 @@ -16,6 +16,7 @@ // This test is not entirely portable #include <fstream> +#include <cstddef> #include <cassert> #include "platform_support.h" // locale name macros @@ -118,6 +119,6 @@ int main() assert(f.sbumpc() == 0x4E51); assert(f.sbumpc() == 0x4E52); assert(f.sbumpc() == 0x4E53); - assert(f.sbumpc() == -1); + assert(f.sbumpc() == static_cast<unsigned>(-1)); } } |