]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
For base 10, cast unsigned long to long before testing overflow.
authorGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 17:27:35 +0000 (17:27 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 17:27:35 +0000 (17:27 +0000)
commit330aafb0c2741aff0f63ce82d1bcca6e0862cf30
tree25ba8ec191755e395410c3a4a621ea3d3e9789ad
parent30da0ea1243955e7f2ab1c85f45e2c20ae1f3c56
For base 10, cast unsigned long to long before testing overflow.
This prevents 4294967296 from being an acceptable way to spell zero!
Python/mystrtoul.c