Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix MSVC compiler warnings (actually this time)
  • Loading branch information
ZeroIntensity committed Jan 4, 2025
commit bdee2b253527dfd2a3407a4349d10ab0c545473b
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));
Comment thread
ZeroIntensity marked this conversation as resolved.
Outdated
}

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));
Comment thread
ZeroIntensity marked this conversation as resolved.
Outdated
}

static PyObject *
Expand Down