Skip to content

Commit

Permalink
attempt to fix GCC 14 compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Sep 21, 2024
1 parent 71dbf70 commit 99bad51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nb_ndarray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ static PyObject *nb_ndarray_dlpack_device(PyObject *self, PyTypeObject *,
}

static PyMethodDef nb_ndarray_members[] = {
{ "__dlpack__", (PyCFunction) nb_ndarray_dlpack, METH_FASTCALL | METH_KEYWORDS, nullptr },
{ "__dlpack_device__", (PyCFunction) nb_ndarray_dlpack_device, METH_FASTCALL | METH_KEYWORDS, nullptr },
{ "__dlpack__", (PyCFunction) (void *) nb_ndarray_dlpack, METH_FASTCALL | METH_KEYWORDS, nullptr },
{ "__dlpack_device__", (PyCFunction) (void *) nb_ndarray_dlpack_device, METH_FASTCALL | METH_KEYWORDS, nullptr },
{ nullptr, nullptr, 0, nullptr }
};

Expand Down

0 comments on commit 99bad51

Please sign in to comment.