summaryrefslogtreecommitdiffstats
path: root/src/common/fixed_point.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-10-18 19:05:08 +0200
committerLioncash <mathew1800@gmail.com>2022-10-18 22:06:50 +0200
commit0101ef9fb115e59f1b9b7a28890104b115eb184d (patch)
tree93f220b72dd2ccea271aeefb938aa8d9f072975d /src/common/fixed_point.h
parentfixed_point: Use defaulted comparisons (diff)
downloadyuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.tar
yuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.tar.gz
yuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.tar.bz2
yuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.tar.lz
yuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.tar.xz
yuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.tar.zst
yuzu-0101ef9fb115e59f1b9b7a28890104b115eb184d.zip
Diffstat (limited to '')
-rw-r--r--src/common/fixed_point.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/fixed_point.h b/src/common/fixed_point.h
index 7f00dd7b5..116dfbb33 100644
--- a/src/common/fixed_point.h
+++ b/src/common/fixed_point.h
@@ -411,7 +411,7 @@ public: // conversion to basic types
return static_cast<int>((data_ & integer_mask) >> fractional_bits);
}
- constexpr unsigned int to_uint() const {
+ constexpr unsigned int to_uint() {
round_up();
return static_cast<unsigned int>((data_ & integer_mask) >> fractional_bits);
}
@@ -425,7 +425,7 @@ public: // conversion to basic types
return static_cast<int>((data_ & integer_mask) >> fractional_bits);
}
- constexpr int64_t to_long_floor() {
+ constexpr int64_t to_long_floor() const {
return static_cast<int64_t>((data_ & integer_mask) >> fractional_bits);
}