summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-08-20 14:31:35 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-08-20 14:31:35 (GMT)
commit75585d4ec18c3b4d42d033c0004a61b6d0704d30 (patch)
tree4faa769e0d04b0f31702d917d1edaa06b67c7246 /Objects
parentffefb1df566c80881bdb353dcab51947d7c5ae5c (diff)
downloadcpython-75585d4ec18c3b4d42d033c0004a61b6d0704d30.zip
cpython-75585d4ec18c3b4d42d033c0004a61b6d0704d30.tar.gz
cpython-75585d4ec18c3b4d42d033c0004a61b6d0704d30.tar.bz2
getinstclassname(): Squash new compiler wng in assert (comparison of
signed vs unsigned).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/classobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index cbbb3c4..f698cc3 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -2328,7 +2328,7 @@ getinstclassname(PyObject *inst, char *buf, int bufsize)
PyObject *class;
if (inst == NULL) {
- assert(bufsize > strlen("nothing"));
+ assert(bufsize > 0 && (size_t)bufsize > strlen("nothing"));
strcpy(buf, "nothing");
return;
}