Skip to content

Commit

Permalink
Added const qualifier to lerp8 and lerp16 signatures as per #332
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbcopland committed Aug 3, 2016
1 parent 2c48613 commit bd00ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pixeltypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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( const CRGB& other, fract8 frac)
inline CRGB lerp8( const CRGB& other, fract8 frac) const
{
CRGB ret;

Expand All @@ -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( const CRGB& other, fract16 frac)
inline CRGB lerp16( const CRGB& other, fract16 frac) const
{
CRGB ret;

Expand Down

0 comments on commit bd00ca0

Please sign in to comment.