diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2019-01-20 03:51:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-20 03:51:06 +0300 |
commit | 010edf0b30b5dbbb5d0035a8901b2cc2370ec046 (patch) | |
tree | 2407a5074fbc2f622386b1a074452112ac8e0ce8 | |
parent | 870010f3c12310ce0851de03a0bbed8225e336fc (diff) | |
parent | 3a70156464be4f557b4438da9904baae8c4d278c (diff) |
Merge pull request #658 from leebyron/patch-1
Fix lerp16by16 where uint32_t should be uint16_t
-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; |