summaryrefslogtreecommitdiff
path: root/src/input_common/input_engine.h
diff options
context:
space:
mode:
authorGravatar Lioncash2022-10-18 15:37:37 -0400
committerGravatar Lioncash2022-10-18 16:06:50 -0400
commit6e1c6297a3f8fcd243ec6b31d3832d84c7df474c (patch)
tree4b8de4393bafeb6a8a8c61f66fbf6a1940630e06 /src/input_common/input_engine.h
parentfixed_point: Mark copy/move assignment operators and constructors as constexpr (diff)
downloadyuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.gz
yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.tar.xz
yuzu-6e1c6297a3f8fcd243ec6b31d3832d84c7df474c.zip
fixed_point: Mark default constructor as constexpr
Ensures that a fixed-point value is always initialized This likely also fixes several cases of uninitialized values being operated on, since we have multiple areas in the codebase where the default constructor is being used like: Common::FixedPoint<50, 14> current_sample{}; and is then followed up with an arithmetic operation like += or something else, which operates directly on FixedPoint's internal data member, which would previously be uninitialized.
Diffstat (limited to 'src/input_common/input_engine.h')
0 files changed, 0 insertions, 0 deletions