Mercurial > cpython-lru_cache-weakref
diff Objects/complexobject.c @ 37815:20cb13bdf1f0 legacy-trunk
C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a couple places
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Tue, 18 Apr 2006 00:35:43 +0000 |
| parents | 79a0f080f898 |
| children | 3031a7110da9 |
line wrap: on
line diff
--- a/Objects/complexobject.c Tue Apr 18 00:29:29 2006 +0000 +++ b/Objects/complexobject.c Tue Apr 18 00:35:43 2006 +0000 @@ -688,7 +688,7 @@ } #ifdef Py_USING_UNICODE else if (PyUnicode_Check(v)) { - if (PyUnicode_GET_SIZE(v) >= sizeof(s_buffer)) { + if (PyUnicode_GET_SIZE(v) >= (Py_ssize_t)sizeof(s_buffer)) { PyErr_SetString(PyExc_ValueError, "complex() literal too large to convert"); return NULL;
