Message191805
On Windows x64, we get the following warning:
..\Objects\codeobject.c(106): warning C4244: '=' : conversion from 'Py_ssize_t' to 'unsigned char', possible loss of data [C:\buildbot.python.org\3.x.kloth-win64\build\PCbuild\pythoncore.vcxproj]
Code:
unsigned char *cell2arg = NULL;
Py_ssize_t total_args = argcount + kwonlyargcount +
((flags & CO_VARARGS) != 0) + ((flags & CO_VARKEYWORDS) != 0);
PyObject *cell = PyTuple_GET_ITEM(cellvars, i);
for (j = 0; j < total_args; j++) {
PyObject *arg = PyTuple_GET_ITEM(varnames, j);
if (!PyUnicode_Compare(cell, arg)) {
====> cell2arg[i] = j; <===== HERE
used_cell2arg = 1;
break;
}
}
total_args is not checked for being smaller than 256.
Related issue: #9566. |
|
Date |
User |
Action |
Args |
2013-06-24 21:19:05 | vstinner | set | recipients:
+ vstinner |
2013-06-24 21:19:05 | vstinner | set | messageid: <1372108745.44.0.114375127897.issue18295@psf.upfronthosting.co.za> |
2013-06-24 21:19:05 | vstinner | link | issue18295 messages |
2013-06-24 21:19:05 | vstinner | create | |
|