diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-21 12:39:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-21 12:39:45 +0200 |
commit | 36090521ce34303fc2c5d73b9da46748f6630ed8 (patch) | |
tree | ccbd41c1bc74ce7e8b7cb40d8aa427129b3c0c02 /src | |
parent | Merge pull request #1123 from lioncash/screen (diff) | |
download | yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.gz yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.bz2 yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.lz yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.xz yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.zst yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/bit_field.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 65e357dec..732201de7 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -178,8 +178,7 @@ public: return ExtractValue(storage); } - // TODO: we may want to change this to explicit operator bool() if it's bug-free in VS2015 - constexpr FORCE_INLINE bool ToBool() const { + constexpr explicit operator bool() const { return Value() != 0; } |