Skip to content

Commit

Permalink
Fix MSVC compiler warnings (actually this time)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Jan 4, 2025
1 parent 23d8e21 commit bdee2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -5329,7 +5329,7 @@ Pointer_item(PyObject *myself, Py_ssize_t index)
offset = index * iteminfo->size;

return PyCData_get(st, proto, stginfo->getfunc, (PyObject *)self,
index, size, (char *)(deref + offset));
index, size, (char *)((char *)deref + offset));
}

static int
Expand Down Expand Up @@ -5374,7 +5374,7 @@ Pointer_ass_item(PyObject *myself, Py_ssize_t index, PyObject *value)
offset = index * iteminfo->size;

return PyCData_set(st, (PyObject *)self, proto, stginfo->setfunc, value,
index, size, (char *)(deref + offset));
index, size, ((char *)deref + offset));
}

static PyObject *
Expand Down

0 comments on commit bdee2b2

Please sign in to comment.