closes bpo-34468: Objects/rangeobject.c: Fix an always-false conditio… · pythoncapi/cpython@7ecae3c · GitHub
Skip to content

Commit 7ecae3c

Browse files
Alexey Izbyshevbenjaminp
authored andcommitted
closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (pythonGH-8880)
Also, propagate the error from PyNumber_AsSsize_t() because we don't care only about OverflowError which is not reported if the second argument is NULL. Reported by Svace static analyzer.
1 parent 2b824b2 commit 7ecae3c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Objects/rangeobject.c

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)