diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 | ||||
-rw-r--r-- | Python/mystrtoul.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 6ab1371..c9cc9de 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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; diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index 46c52b8..f8135e1 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -129,7 +129,7 @@ int base; result = result * base + c; #ifndef MPW if(base == 10) { - if(((long)(result - c) / base != temp)) /* overflow */ + if(((long)(result - c) / base != (long)temp)) /* overflow */ ovf = 1; } else { |