Skip to content

Commit 42eba57

Browse files
committed
Work around wrong gcc13 error in winsorize
1 parent e14a8f7 commit 42eba57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/fplus/split.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ Container stride(std::size_t step, const Container& xs)
713713
template <typename Container>
714714
Container winsorize(double trim_ratio, const Container& xs)
715715
{
716-
if (size_of_cont(xs) < 2)
716+
if (size_of_cont(xs) == 1 || size_of_cont(xs) == 0)
717717
{
718718
return xs;
719719
}

include_all_in_one/include/fplus/fplus.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11256,7 +11256,7 @@ Container stride(std::size_t step, const Container& xs)
1125611256
template <typename Container>
1125711257
Container winsorize(double trim_ratio, const Container& xs)
1125811258
{
11259-
if (size_of_cont(xs) < 2)
11259+
if (size_of_cont(xs) == 1 || size_of_cont(xs) == 0)
1126011260
{
1126111261
return xs;
1126211262
}

0 commit comments

Comments
 (0)