Mercurial > cpython-lru_cache-weakref
diff Objects/bytesobject.c @ 43687:6ab64f6b4c03
Fix some Py_ssize_t warnings on Win64 that were probably bugs
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 26 Oct 2007 06:44:10 +0000 |
| parents | 0067a6ab4854 |
| children | 64ce3bf3a6a9 |
line wrap: on
line diff
--- a/Objects/bytesobject.c Fri Oct 26 06:05:28 2007 +0000 +++ b/Objects/bytesobject.c Fri Oct 26 06:44:10 2007 +0000 @@ -108,7 +108,7 @@ PyBytes_FromStringAndSize(const char *bytes, Py_ssize_t size) { PyBytesObject *new; - int alloc; + Py_ssize_t alloc; assert(size >= 0); @@ -1458,7 +1458,7 @@ } Py_LOCAL_INLINE(Py_ssize_t) -countchar(const char *target, int target_len, char c, Py_ssize_t maxcount) +countchar(const char *target, Py_ssize_t target_len, char c, Py_ssize_t maxcount) { Py_ssize_t count=0; const char *start=target;
