Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Fix erroneous assert
Browse files Browse the repository at this point in the history
  • Loading branch information
arntanguy committed Dec 4, 2023
1 parent 3919a25 commit 304eacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gram_savitzky_golay/gram_savitzky_golay.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ struct GRAM_SAVITZKY_GOLAY_DLLAPI SavitzkyGolayFilter
template<typename ContainerT>
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)
Expand Down

0 comments on commit 304eacc

Please sign in to comment.