FastLED
3.10.8
Loading...
Searching...
No Matches
◆
is_i64_out_of_range()
[1/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
168
of file
types.h
.
168
{
169
const
i64
min_val
=
static_cast<
i64
>
((
fl::numeric_limits<Target>::min
)());
170
const
i64
max_val
=
static_cast<
i64
>
((
fl::numeric_limits<Target>::max
)());
171
if
(
value < min_val || value >
max_val
) {
172
FL_WARN
(
"JSON integer overflow: value "
<<
value
<<
" does not fit in target type (range: "
<<
min_val
<<
" to "
<<
max_val
<<
"), truncating"
);
173
return
true
;
174
}
175
return
false
;
176
}
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