commit 74689beca7ac52f7b5170beef5696282491001af
parent 7265fd9f4aabf66189e40ae85cae0f906568c5e7
Author: [email protected] <[email protected]>
Date: Fri, 11 Nov 2022 19:45:43 +0000
Fix size_min
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/base/filter.hpp b/include/kfr/base/filter.hpp
@@ -92,7 +92,7 @@ public:
void apply(univector<T, Tag>& dest, const Expr& src)
{
static_assert(expression_dims<Expr> == 1);
- process_expression(dest.data(), to_handle(src), size_min(dest.size(), shapeof(src)));
+ process_expression(dest.data(), to_handle(src), size_min(dest.size(), shapeof(src).front()));
}
template <typename Expr, KFR_ENABLE_IF(is_input_expression<Expr>)>