diff options
Diffstat (limited to 'tools/source/misc')
-rw-r--r-- | tools/source/misc/fix16.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/misc/fix16.cxx b/tools/source/misc/fix16.cxx index 95104bbbb9de..b726acb8f660 100644 --- a/tools/source/misc/fix16.cxx +++ b/tools/source/misc/fix16.cxx @@ -70,7 +70,7 @@ fix16_t fix16_mul(fix16_t inArg0, fix16_t inArg1) return fix16_overflow; } - fix16_t result = static_cast<fix16_t>(product >> 16); + fix16_t result = (product >> 16) & 0xFFFF; result += (product & 0x8000) >> 15; return result; |