Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-38490: prevent crash in order_from_multiple() due to rounding error
Due to what appears to be rounding errors, the value of `k` here can be zero, which results in the list `L` being split as `L1 == []` and `L2 == L`. This causes an error in the next recursive call. Simple workaround: If either `L1` or `L2` would end up being empty, we split the lists in the middle instead. Resolves #38489. URL: #38490 Reported by: Lorenz Panny Reviewer(s):
- Loading branch information