mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-08-07 03:37:30 +00:00
C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
@ -22635,7 +22635,7 @@ namespace exprtk
|
|||||||
// Perform compile-time range check
|
// Perform compile-time range check
|
||||||
if (details::is_constant_node(index_expr))
|
if (details::is_constant_node(index_expr))
|
||||||
{
|
{
|
||||||
const std::size_t index = std::size_t(index_expr->value());
|
const std::size_t index = static_cast<std::size_t>(details::numeric::to_int32(index_expr->value()));
|
||||||
const std::size_t vec_size = vec->size();
|
const std::size_t vec_size = vec->size();
|
||||||
|
|
||||||
if (index >= vec_size)
|
if (index >= vec_size)
|
||||||
|
Reference in New Issue
Block a user