summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-21 12:39:42 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 12:39:45 +0200
commit36090521ce34303fc2c5d73b9da46748f6630ed8 (patch)
treeccbd41c1bc74ce7e8b7cb40d8aa427129b3c0c02
parentMerge pull request #1123 from lioncash/screen (diff)
downloadyuzu-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
-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;
}