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;
|
PyObject *class;
|
||||||
|
|
||||||
if (inst == NULL) {
|
if (inst == NULL) {
|
||||||
assert(bufsize > strlen("nothing"));
|
assert(bufsize > 0 && (size_t)bufsize > strlen("nothing"));
|
||||||
strcpy(buf, "nothing");
|
strcpy(buf, "nothing");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user