We need to cater to negative infinity explicitly. Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de> Closes GH-15965.