summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-05-29 22:54:34 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-07-16 09:05:29 +0200
commit47a001722d7ada681e333e991373e19d159c380b (patch)
treecb8871d30e4cb67e4224ff9e59d34acc38774378 /src
parentMerge pull request #29 from bunnei/address-arbiters (diff)
downloadyuzu-47a001722d7ada681e333e991373e19d159c380b.tar
yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.gz
yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.bz2
yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.lz
yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.xz
yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.zst
yuzu-47a001722d7ada681e333e991373e19d159c380b.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/bit_field.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index dfd00d198..a39bb9886 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -132,6 +132,11 @@ public:
__forceinline operator T() const
{
+ return Value();
+ }
+
+ __forceinline T Value() const
+ {
if (std::numeric_limits<T>::is_signed)
{
std::size_t shift = 8 * sizeof(T)-bits;