mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
Try to fix a bunch of compiler warnings on Win64.
This commit is contained in:
parent
40f5e4c5a2
commit
4677fbf7de
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue