diff options
author | Lioncash <mathew1800@gmail.com> | 2022-10-18 21:37:37 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-10-18 22:06:50 +0200 |
commit | 6e1c6297a3f8fcd243ec6b31d3832d84c7df474c (patch) | |
tree | 4b8de4393bafeb6a8a8c61f66fbf6a1940630e06 /src | |
parent | fixed_point: Mark copy/move assignment operators and constructors as constexpr (diff) | |
download | yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.gz yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.bz2 yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.lz yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.xz yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.zst yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/fixed_point.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/fixed_point.h b/src/common/fixed_point.h index 5aafa273b..f899b0d54 100644 --- a/src/common/fixed_point.h +++ b/src/common/fixed_point.h @@ -267,7 +267,7 @@ public: static constexpr base_type one = base_type(1) << fractional_bits; public: // constructors - FixedPoint() = default; + constexpr FixedPoint() = default; constexpr FixedPoint(const FixedPoint&) = default; constexpr FixedPoint& operator=(const FixedPoint&) = default; @@ -463,7 +463,7 @@ public: } public: - base_type data_; + base_type data_{}; }; // if we have the same fractional portion, but differing integer portions, we trivially upgrade the |