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:
authorChristof Kaufmann <christofkaufmann.dev@gmail.com>2021-05-26 14:28:59 +0300
committerChristof Kaufmann <christofkaufmann.dev@gmail.com>2021-05-26 15:15:44 +0300
commit17152614725d6079726d42e63157da74616606ad (patch)
tree025f33a562384c2e25e9be969fb65ea540461582
parentcfffa1351497425931fb9ef5bad0eeb7b0cf8645 (diff)
Add missing const in unary operator-
-rw-r--r--src/pixeltypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pixeltypes.h b/src/pixeltypes.h
index 6e91723d..62adf805 100644
--- a/src/pixeltypes.h
+++ b/src/pixeltypes.h
@@ -412,7 +412,7 @@ struct CRGB {
}
/// invert each channel
- inline CRGB operator- ()
+ inline CRGB operator- () const
{
CRGB retval;
retval.r = 255 - r;