aboutsummaryrefslogtreecommitdiff
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
commitd28572d4b811aba093e7b17127fa0e38a842a2c5 (patch)
tree4b8de4393bafeb6a8a8c61f66fbf6a1940630e06 /src/input_common/drivers/sdl_driver.cpp
parent9cc623426507a783aac7c444d9acefec9d3800d4 (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