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

Skip to content

Commit 687a1fa

Browse files
committed
Add casts (one needed, one for consistency).
1 parent b75b639 commit 687a1fa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/ossaudiodev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,8 @@ static PyMethodDef oss_methods[] = {
800800
{ "flush", (PyCFunction)oss_sync, METH_VARARGS },
801801

802802
/* Support for the context manager protocol */
803-
{ "__enter__", oss_self, METH_NOARGS },
804-
{ "__exit__", oss_exit, METH_VARARGS },
803+
{ "__enter__", (PyCFunction)oss_self, METH_NOARGS },
804+
{ "__exit__", (PyCFunction)oss_exit, METH_VARARGS },
805805

806806
{ NULL, NULL} /* sentinel */
807807
};
@@ -812,8 +812,8 @@ static PyMethodDef oss_mixer_methods[] = {
812812
{ "fileno", (PyCFunction)oss_mixer_fileno, METH_NOARGS },
813813

814814
/* Support for the context manager protocol */
815-
{ "__enter__", oss_self, METH_NOARGS },
816-
{ "__exit__", oss_exit, METH_VARARGS },
815+
{ "__enter__", (PyCFunction)oss_self, METH_NOARGS },
816+
{ "__exit__", (PyCFunction)oss_exit, METH_VARARGS },
817817

818818
/* Simple ioctl wrappers */
819819
{ "controls", (PyCFunction)oss_mixer_controls, METH_VARARGS },

0 commit comments

Comments
 (0)