]> granicus.if.org Git - python/commit
Clarify return value of PyLong_AsLongLong().
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 23 Apr 2002 20:01:20 +0000 (20:01 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 23 Apr 2002 20:01:20 +0000 (20:01 +0000)
commitc4ad0bcbe5891f0e0df297b28d211696aad5d1ba
treecfa06b72894bf740560b8fc47cd18f13d0e23b4b
parent656b735af9c3b4efdad93307da92555bab36c562
Clarify return value of PyLong_AsLongLong().

The function is documented to return -1 on error.  If res was < 0, it
returned res.  It wasn't clear that the invariant was res < 0 iff res
== -1.
Objects/longobject.c