summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-03-28 19:27:56 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-03-28 19:27:56 (GMT)
commit12bec1b9851b821d3350a20f3a49e2a0cb7d22e5 (patch)
treededf446c3295256acc08d13f604eec570f1c331e /Objects
parent80bb2bb7eb8ed68609f7533eac6d1e31f45b2843 (diff)
downloadcpython-12bec1b9851b821d3350a20f3a49e2a0cb7d22e5.zip
cpython-12bec1b9851b821d3350a20f3a49e2a0cb7d22e5.tar.gz
cpython-12bec1b9851b821d3350a20f3a49e2a0cb7d22e5.tar.bz2
fix a comment.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index e47c292..6b1a481 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -301,7 +301,7 @@ _PyLong_AsSsize_t(PyObject *vv)
/* Get a Py_ssize_t from a long int object.
Silently reduce values larger than PY_SSIZE_T_MAX to PY_SSIZE_T_MAX,
and silently boost values less than -PY_SSIZE_T_MAX-1 to -PY_SSIZE_T_MAX-1.
- Return 0 on error, 1 on success.
+ On error, return -1 with an exception set.
*/
static Py_ssize_t