diff options
| author | ignat <[email protected]> | 2025-07-17 10:44:57 +0300 |
|---|---|---|
| committer | ignat <[email protected]> | 2025-07-17 10:56:57 +0300 |
| commit | ecf21daf366d4aea855cfe07d178787bc250e313 (patch) | |
| tree | c50c61e55a3427b5f44a19b46465470ffd80eeaa | |
| parent | 583d7212b01a21ff83e9022d9b89b35763a6fe9a (diff) | |
Fix FormatValue for TPiecewiseLinearFunction
commit_hash:f841bd35c3e670c7ab48051623843a3d16f38762
| -rw-r--r-- | yt/yt/library/numeric/piecewise_linear_function-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/yt/library/numeric/piecewise_linear_function-inl.h b/yt/yt/library/numeric/piecewise_linear_function-inl.h index 694066cfa47..b4be0633e43 100644 --- a/yt/yt/library/numeric/piecewise_linear_function-inl.h +++ b/yt/yt/library/numeric/piecewise_linear_function-inl.h @@ -1141,9 +1141,9 @@ void FormatValue(TStringBuilderBase* builder, const TPiecewiseLinearFunction<TVa FormatValue(builder, segments[0].LeftValue(), spec); for (size_t index = 1; index < segments.size(); index++) { builder->AppendString(", "); - FormatValue(builder, segments[0].RightBound(), spec); + FormatValue(builder, segments[index].RightBound(), spec); builder->AppendString(": "); - FormatValue(builder, segments[0].RightValue(), spec); + FormatValue(builder, segments[index].RightValue(), spec); } } builder->AppendChar(']'); |
