diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-26 06:44:10 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-26 06:44:10 (GMT) |
commit | 61ec0d32634eaa43bbe433628607c137d91736de (patch) | |
tree | 99dc612bd0d4ec5eb9f86376cbc0d4db0070d101 /Objects/bytesobject.c | |
parent | 56cdf686fc4f7596d3c93d2a1525e661297fb557 (diff) | |
download | cpython-61ec0d32634eaa43bbe433628607c137d91736de.zip cpython-61ec0d32634eaa43bbe433628607c137d91736de.tar.gz cpython-61ec0d32634eaa43bbe433628607c137d91736de.tar.bz2 |
Fix some Py_ssize_t warnings on Win64 that were probably bugs
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index db475cd..94b59ca 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -108,7 +108,7 @@ PyObject * PyBytes_FromStringAndSize(const char *bytes, Py_ssize_t size) { PyBytesObject *new; - int alloc; + Py_ssize_t alloc; assert(size >= 0); @@ -1458,7 +1458,7 @@ return_self(PyBytesObject *self) } 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; |