Python3.14: Strangely this gives a warning with MSVC now

* For 3.13 and earlier the warning was not given, but now with 3.14
  it is, but it's actually a type mismatch for all versions.

* It could also be MSVC 14.5 having changed but, but I doubt that
  is the case. It's a good change anyway, although obviously it
  is not nearly a fix of anything.
This commit is contained in:
Kay Hayen
2025-11-27 11:20:33 +00:00
parent 49ac29fab9
commit 1d5b0cabb8

View File

@@ -354,7 +354,7 @@ NUITKA_MAY_BE_UNUSED static bool UNPACK_ITERATOR_CHECK(PyThreadState *tstate,
SET_EXCEPTION_PRESERVATION_STATE_FROM_TYPE0_FORMAT1(tstate, exception_state, PyExc_ValueError,
"too many values to unpack (expected %d)", expected);
#else
int gotten = -1;
Py_ssize_t gotten = -1;
if (Py_TYPE(iterator) == &PyTupleIter_Type) {
gotten = PyTuple_GET_SIZE(((_PyTupleIterObject *)iterator)->it_seq);