diff options
author | Lee Byron <lee@leebyron.com> | 2018-10-01 04:24:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-01 04:24:41 +0300 |
commit | 3a70156464be4f557b4438da9904baae8c4d278c (patch) | |
tree | 1c15adcaf1e3f5b633c2713c7e0584bcf3a45149 | |
parent | 38105c61de097066946f2df4d2bb2c36ddc78d7c (diff) |
Fix lerp16by16 where uint32_t should be uint16_t
scale16 returns a uint16_t and it doesn't seem necessary to upcast.
-rw-r--r-- | lib8tion.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -477,7 +477,7 @@ LIB8STATIC uint16_t lerp16by16( uint16_t a, uint16_t b, fract16 frac) uint16_t result; if( b > a ) { uint16_t delta = b - a; - uint32_t scaled = scale16(delta, frac); + uint16_t scaled = scale16(delta, frac); result = a + scaled; } else { uint16_t delta = a - b; |