Message191805
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2013年06月24日.21:19:05 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1372108745.44.0.114375127897.issue18295@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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.org3円.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. |
|
History
|
|---|
| 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 |
|