diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-20 14:31:35 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-20 14:31:35 (GMT) |
commit | 75585d4ec18c3b4d42d033c0004a61b6d0704d30 (patch) | |
tree | 4faa769e0d04b0f31702d917d1edaa06b67c7246 /Objects | |
parent | ffefb1df566c80881bdb353dcab51947d7c5ae5c (diff) | |
download | cpython-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.c | 2 |
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; } |