mirror of
https://github.com/python/cpython
synced 2024-10-09 08:30:04 +00:00
getinstclassname(): Squash new compiler wng in assert (comparison of
signed vs unsigned).
This commit is contained in:
parent
ffefb1df56
commit
75585d4ec1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue