FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator()() [8/10]

template<typename T>
void fl::detail::JsonToFloatVisitor< T >::operator() ( const i64 & raw)
inline

Definition at line 192 of file json_visitors.h.

192 {
193 mValue = static_cast<T>(raw);
194 // Large integers may lose precision when converted to float
195 if (sizeof(T) < 8 && (raw > 16777216 || raw < -16777216)) {
196 mResult.addWarning("large int " + fl::to_string(raw) + " may lose precision as float");
197 }
198 }
TypeConversionResult mResult

References mResult, mValue, and fl::to_string().

+ Here is the call graph for this function: