diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fixed_point.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fixed_point.cpp b/src/fixed_point.cpp index 3e67e77..7ff77a0 100644 --- a/src/fixed_point.cpp +++ b/src/fixed_point.cpp @@ -1,7 +1,7 @@ #include "fixed_point.h" fp_t fp_t::operator+(const fp_t& other) const { - return {raw + other.raw}; + return {(int32_t)((uint32_t)raw + (uint32_t)other.raw)}; } bool fp_t::operator==(const fp_t& other) const { |
