From 39190d6506c250983d8697c5aecedb42723c4f11 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sun, 19 Feb 2023 18:47:04 +0100 Subject: [PATCH] figments: input: fix as() signature to return pointers --- lib/Figments/Input.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Figments/Input.h b/lib/Figments/Input.h index 982c9f7..bfab017 100644 --- a/lib/Figments/Input.h +++ b/lib/Figments/Input.h @@ -37,8 +37,8 @@ struct Variant { CRGB asRGB() const; int asInt() const; bool asBool() const; - template const T& as() const { - return *static_cast(m_value.asPointer); + template const T* as() const { + return static_cast(m_value.asPointer); } private: