diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-25 04:18:18 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-25 04:18:18 (GMT) |
commit | 4677fbf7de591d0cea0d1aeaa9639ee46faa48f5 (patch) | |
tree | 901a21ade405c98f331df5c2ef3ccf1266280f0b /Python | |
parent | 40f5e4c5a20436e61e8cdcda9c5a3d0162f9435c (diff) | |
download | cpython-4677fbf7de591d0cea0d1aeaa9639ee46faa48f5.zip cpython-4677fbf7de591d0cea0d1aeaa9639ee46faa48f5.tar.gz cpython-4677fbf7de591d0cea0d1aeaa9639ee46faa48f5.tar.bz2 |
Try to fix a bunch of compiler warnings on Win64.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/peephole.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/peephole.c b/Python/peephole.c index 430f939..e9da377 100644 --- a/Python/peephole.c +++ b/Python/peephole.c @@ -29,7 +29,7 @@ Also works for BUILD_LIST when followed by an "in" or "not in" test. */ static int -tuple_of_constants(unsigned char *codestr, int n, PyObject *consts) +tuple_of_constants(unsigned char *codestr, Py_ssize_t n, PyObject *consts) { PyObject *newconst, *constant; Py_ssize_t i, arg, len_consts; @@ -228,7 +228,7 @@ fold_unaryops_on_constants(unsigned char *codestr, PyObject *consts) } static unsigned int * -markblocks(unsigned char *code, int len) +markblocks(unsigned char *code, Py_ssize_t len) { unsigned int *blocks = (unsigned int *)PyMem_Malloc(len*sizeof(int)); int i,j, opcode, blockcnt = 0; |