Skip to content

Commit

Permalink
Work around wrong gcc13 error in winsorize
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Sep 14, 2023
1 parent e14a8f7 commit 42eba57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/fplus/split.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ Container stride(std::size_t step, const Container& xs)
template <typename Container>
Container winsorize(double trim_ratio, const Container& xs)
{
if (size_of_cont(xs) < 2)
if (size_of_cont(xs) == 1 || size_of_cont(xs) == 0)
{
return xs;
}
Expand Down
2 changes: 1 addition & 1 deletion include_all_in_one/include/fplus/fplus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11256,7 +11256,7 @@ Container stride(std::size_t step, const Container& xs)
template <typename Container>
Container winsorize(double trim_ratio, const Container& xs)
{
if (size_of_cont(xs) < 2)
if (size_of_cont(xs) == 1 || size_of_cont(xs) == 0)
{
return xs;
}
Expand Down

0 comments on commit 42eba57

Please sign in to comment.