Ah yes correct, it should be better with the following commit: http://hg.python.org/cpython/rev/3a393fc86b29
Victor 2013/6/24 Jeremy Kloth <[email protected]>: > On Mon, Jun 24, 2013 at 3:33 PM, victor.stinner > <[email protected]> wrote: >> http://hg.python.org/cpython/rev/6b4d279508a3 >> changeset: 84325:6b4d279508a3 >> user: Victor Stinner <[email protected]> >> date: Mon Jun 24 23:31:48 2013 +0200 >> summary: >> Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64 >> ... >> static PyObject * >> tupleiter_setstate(tupleiterobject *it, PyObject *state) >> { >> - long index = PyLong_AsLong(state); >> + Py_ssize_t index = PyLong_AsLong(state); > > Actually, this will still lose data when state > MAX_INT (on Windows). > It should be changed to PyLong_AsSssize_t(state) to ensure consistent > behavior on all platforms. _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
