getinstclassname(): Squash new compiler wng in assert (comparison of

signed vs unsigned).
This commit is contained in:
Tim Peters 2002-08-20 14:31:35 +00:00
parent ffefb1df56
commit 75585d4ec1

View file

@ -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;
}