From 243a6be085fe6a7ce49169864c68a8839735e49b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 23 Oct 2019 17:52:30 +0000 Subject: Vendor import of stripped libc++ trunk r375505, the last commit before the upstream Subversion repository was made read-only, and the LLVM project migrated to GitHub: https://llvm.org/svn/llvm-project/libcxx/trunk@375505 --- include/istream | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/istream') diff --git a/include/istream b/include/istream index d6217bbb8009..bfbe5f24728e 100644 --- a/include/istream +++ b/include/istream @@ -1619,7 +1619,7 @@ operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x) __is.rdbuf()->sbumpc(); } __x = bitset<_Size>(__str); - if (__c == 0) + if (_Size > 0 && __c == 0) __state |= ios_base::failbit; #ifndef _LIBCPP_NO_EXCEPTIONS } -- cgit v1.2.3