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)