summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-21 16:21:19 +0200
committerGitHub <noreply@github.com>2018-08-21 16:21:19 +0200
commit37f2ec6fc2b2347501667891f83a4a0fb21aa6c1 (patch)
treefd4d51f6cd5e8e11a3ff08ee2e93a3861a8eeb7b
parentMerge pull request #1140 from FearlessTobi/port-4056 (diff)
parentbit_field: Convert ToBool() into explicit operator bool (diff)
downloadyuzu-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.h3
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;
}