diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2016-08-04 20:49:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-04 20:49:40 +0300 |
commit | fdb6952cce57f7c1c9c2306b61b944f3c840d426 (patch) | |
tree | c7cabfd1b8ff9335ec4fa108fa64491224b49566 | |
parent | cf418b48bb9fbcf6cd4a5a4274b68d408f6d48b9 (diff) | |
parent | bd00ca04b299f33fe85349ac4590ae616825a743 (diff) |
Merge pull request #316 from mjbcopland/master
Make lerp8 and lerp16 reference parameters const
-rw-r--r-- | pixeltypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pixeltypes.h b/pixeltypes.h index 7d944f8e..075c7945 100644 --- a/pixeltypes.h +++ b/pixeltypes.h @@ -485,7 +485,7 @@ struct CRGB { } /// return a new CRGB object after performing a linear interpolation between this object and the passed in object - inline CRGB lerp8( CRGB & other, fract8 frac) + inline CRGB lerp8( const CRGB& other, fract8 frac) const { CRGB ret; @@ -497,7 +497,7 @@ struct CRGB { } /// return a new CRGB object after performing a linear interpolation between this object and the passed in object - inline CRGB lerp16( CRGB & other, fract16 frac) + inline CRGB lerp16( const CRGB& other, fract16 frac) const { CRGB ret; |