From 304eacc1984e9bfe19a700a577bac14213de3521 Mon Sep 17 00:00:00 2001 From: Arnaud TANGUY Date: Mon, 4 Dec 2023 12:44:04 +0100 Subject: [PATCH] Fix erroneous assert --- include/gram_savitzky_golay/gram_savitzky_golay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gram_savitzky_golay/gram_savitzky_golay.h b/include/gram_savitzky_golay/gram_savitzky_golay.h index 8a7662e..ade1688 100644 --- a/include/gram_savitzky_golay/gram_savitzky_golay.h +++ b/include/gram_savitzky_golay/gram_savitzky_golay.h @@ -158,7 +158,7 @@ struct GRAM_SAVITZKY_GOLAY_DLLAPI SavitzkyGolayFilter template typename ContainerT::value_type filter(const ContainerT & v) const { - assert(v.size() == weights_.size() && v.size() > 0); + assert(v.size() != weights_.size() || v.size() < 1); using T = typename ContainerT::value_type; T res = weights_[0] * v[0]; for(size_t i = 1; i < v.size(); ++i)