mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Address warnings issued by the MSVC++ compiler
This commit is contained in:
parent
462a5495fb
commit
39b0f8976c
4 changed files with 4 additions and 5 deletions
|
@ -858,7 +858,7 @@ find_module(name, path, buf, buflen, p_fp)
|
|||
}
|
||||
else if (PyString_Check(path)) {
|
||||
/* Submodule of frozen package */
|
||||
if (PyString_Size(path) + 1 + strlen(name) >= buflen) {
|
||||
if (PyString_Size(path) + 1 + strlen(name) >= (unsigned int)buflen) {
|
||||
PyErr_SetString(PyExc_ImportError,
|
||||
"full frozen module name too long");
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue