Skip to content

Commit 3902316

Browse files
committed
Updates to ExprTk
1 parent 360a535 commit 3902316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exprtk/exprtk.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22635,7 +22635,7 @@ namespace exprtk
2263522635
// Perform compile-time range check
2263622636
if (details::is_constant_node(index_expr))
2263722637
{
22638-
const std::size_t index = std::size_t(index_expr->value());
22638+
const std::size_t index = static_cast<std::size_t>(details::numeric::to_int32(index_expr->value()));
2263922639
const std::size_t vec_size = vec->size();
2264022640

2264122641
if (index >= vec_size)

0 commit comments

Comments
 (0)