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.
  • Loading branch information
ZeroIntensity committed Jan 4, 2025
commit 23d8e21f7c716d164a71dbe39dd1f51cc86a8bea
6 changes: 3 additions & 3 deletions Modules/_ctypes/_ctypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ CDataType_from_buffer_copy_impl(PyObject *type, PyTypeObject *cls,

result = generic_pycdata_new(st, (PyTypeObject *)type, NULL, NULL);
if (result != NULL) {
locked_memcpy_to((CDataObject *) result, buffer->buf + offset, info->size);
locked_memcpy_to((CDataObject *) result, (char *)buffer->buf + offset, info->size);
}
return result;
}
Expand Down 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, (deref + offset));
index, size, (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, (deref + offset));
index, size, (char *)(deref + offset));
}

static PyObject *
Expand Down