diff options
author | Michael Copland <mjbcopland@gmail.com> | 2016-06-10 04:57:47 +0300 |
---|---|---|
committer | Michael Copland <mjbcopland@gmail.com> | 2016-06-10 04:57:47 +0300 |
commit | 2c48613e98d8b0db0b91d7d4d08168faafd45a62 (patch) | |
tree | 2f80b2364751fc3374649c457bd1f150644375d9 | |
parent | 663c9476cd96e6daf1b4e3ed7cf4082d73a6302c (diff) |
Made 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..fd20d256 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) { 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) { CRGB ret; |