Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 7979:cc47733b4dd2 legacy-trunk
Address warnings issued by the MSVC++ compiler
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 10 Apr 1998 21:52:06 +0000 |
| parents | c8e5f704623d |
| children | 697df93e5ddb |
line wrap: on
line diff
--- a/Python/import.c Fri Apr 10 21:36:04 1998 +0000 +++ b/Python/import.c Fri Apr 10 21:52:06 1998 +0000 @@ -858,7 +858,7 @@ } 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;
