homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:05vstinnersetrecipients: + vstinner
2013年06月24日 21:19:05vstinnersetmessageid: <1372108745.44.0.114375127897.issue18295@psf.upfronthosting.co.za>
2013年06月24日 21:19:05vstinnerlinkissue18295 messages
2013年06月24日 21:19:05vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /