summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/sdl_driver.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-10-18 15:37:37 -0400
committerLioncash <mathew1800@gmail.com>2022-10-18 16:06:50 -0400
commit6e1c6297a3f8fcd243ec6b31d3832d84c7df474c (patch)
tree4b8de4393bafeb6a8a8c61f66fbf6a1940630e06 /src/input_common/drivers/sdl_driver.cpp
parentb6119a55f9bbc306593afccc0820165d74c2fadc (diff)
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/drivers/sdl_driver.cpp')
0 files changed, 0 insertions, 0 deletions