diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-21 16:21:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 16:21:19 +0200 |
commit | 37f2ec6fc2b2347501667891f83a4a0fb21aa6c1 (patch) | |
tree | fd4d51f6cd5e8e11a3ff08ee2e93a3861a8eeb7b | |
parent | Merge pull request #1140 from FearlessTobi/port-4056 (diff) | |
parent | bit_field: Convert ToBool() into explicit operator bool (diff) | |
download | yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.tar yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.tar.gz yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.tar.bz2 yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.tar.lz yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.tar.xz yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.tar.zst yuzu-37f2ec6fc2b2347501667891f83a4a0fb21aa6c1.zip |
-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; } |