Permalink
Browse files

Added const qualifier to lerp8 and lerp16 signatures as per #332

  • Loading branch information...
mjbcopland committed Aug 3, 2016
1 parent 2c48613 commit bd00ca04b299f33fe85349ac4590ae616825a743
Showing with 2 additions and 2 deletions.
  1. +2 −2 pixeltypes.h
View
@@ -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;
@@ -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;

0 comments on commit bd00ca0

Please sign in to comment.