Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Byron <lee@leebyron.com>2018-10-01 04:24:41 +0300
committerGitHub <noreply@github.com>2018-10-01 04:24:41 +0300
commit3a70156464be4f557b4438da9904baae8c4d278c (patch)
tree1c15adcaf1e3f5b633c2713c7e0584bcf3a45149
parent38105c61de097066946f2df4d2bb2c36ddc78d7c (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib8tion.h b/lib8tion.h
index 42f985de..24c5d0ab 100644
--- a/lib8tion.h
+++ b/lib8tion.h
@@ -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;