FastLED
3.10.8
Loading...
Searching...
No Matches
◆
is_i64_out_of_range()
[2/2]
fl::enable_if
<!
fl::is_signed
< Target >
::value
, bool >::type
fl::int_conversion_visitor
<
i64
>::is_i64_out_of_range
(
const
i64
&
value
)
inline
Definition at line
180
of file
types.h
.
180
{
181
const
u64
max_val
=
static_cast<
u64
>
((
fl::numeric_limits<Target>::max
)());
182
if
(
value
< 0 ||
static_cast<
u64
>
(
value
) >
max_val
) {
183
FL_WARN
(
"JSON integer overflow: value "
<<
value
<<
" does not fit in target type (range: 0 to "
<<
max_val
<<
"), truncating"
);
184
return
true
;
185
}
186
return
false
;
187
}
FL_WARN
#define FL_WARN(...)
Definition
log.h:437
fl::int_conversion_visitor
Definition
types.h:163
fl
int_conversion_visitor< i64 >
Generated on Sun Oct 18 2026 00:57:06 for FastLED by
1.13.2