summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index f778387..ddec3e4 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -1019,7 +1019,7 @@ instance_length(PyInstanceObject *inst)
/* Overflow check -- range of PyInt is more than C int */
if (outcome != temp) {
PyErr_SetString(PyExc_OverflowError,
- "__len__() should return 0 <= outcome < 2**32");
+ "__len__() should return 0 <= outcome < 2**31");
outcome = -1;
}
else