]> granicus.if.org Git - python/commitdiff
fix a comment.
authorArmin Rigo <arigo@tunes.org>
Tue, 28 Mar 2006 19:27:56 +0000 (19:27 +0000)
committerArmin Rigo <arigo@tunes.org>
Tue, 28 Mar 2006 19:27:56 +0000 (19:27 +0000)
Objects/longobject.c

index e47c292c9506f80b6b6edc0034526a463c980b0f..6b1a4811f3bb5cbc18ecaa80f3bee76fe3d8875a 100644 (file)
@@ -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