diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2013-10-21 14:41:05 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2013-10-21 14:41:05 +0000 |
| commit | 5b40666c6cb1e91a1749d2aaf75ded474bc35026 (patch) | |
| tree | 5371f1e44de9edabf7502cf55d49de7f759ee0a0 /libcxx/include/ios | |
| parent | d8cfc7dce9b9ce92a45ffe80dc10c603faa2d243 (diff) | |
| download | bcm5719-llvm-5b40666c6cb1e91a1749d2aaf75ded474bc35026.tar.gz bcm5719-llvm-5b40666c6cb1e91a1749d2aaf75ded474bc35026.zip | |
Patch by GM: Making implicit conversion to bool explicit in <ios> and <__locale>
llvm-svn: 193085
Diffstat (limited to 'libcxx/include/ios')
| -rw-r--r-- | libcxx/include/ios | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/ios b/libcxx/include/ios index 0dd328d8818..d95f18a5e1e 100644 --- a/libcxx/include/ios +++ b/libcxx/include/ios @@ -535,21 +535,21 @@ inline _LIBCPP_INLINE_VISIBILITY bool ios_base::eof() const { - return __rdstate_ & eofbit; + return (__rdstate_ & eofbit) != 0; } inline _LIBCPP_INLINE_VISIBILITY bool ios_base::fail() const { - return __rdstate_ & (failbit | badbit); + return (__rdstate_ & (failbit | badbit)) != 0; } inline _LIBCPP_INLINE_VISIBILITY bool ios_base::bad() const { - return __rdstate_ & badbit; + return (__rdstate_ & badbit) != 0; } inline _LIBCPP_INLINE_VISIBILITY |

