mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
getinstclassname(): Squash new compiler wng in assert (comparison of
signed vs unsigned).
This commit is contained in:
parent
ffefb1df56
commit
75585d4ec1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue