Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-38490: prevent crash in order_from_multiple() due to round…
…ing 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 sagemath#38489. URL: sagemath#38490 Reported by: Lorenz Panny Reviewer(s):
- Loading branch information