Skip to content

Commit 228348c

Browse files
committed
Remove redundant cast to PyObject *.
1 parent 4c207d3 commit 228348c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/_cursesmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ _curses_window_derwin_impl(PyCursesWindowObject *self, int group_left_1,
14061406
}
14071407

14081408
_cursesmodule_state *st = get_cursesmodule_state_by_cls(Py_TYPE(self));
1409-
return (PyObject *)PyCursesWindow_New(st, win, NULL);
1409+
return PyCursesWindow_New(st, win, NULL);
14101410
}
14111411

14121412
/*[clinic input]
@@ -2444,7 +2444,7 @@ _curses_window_subwin_impl(PyCursesWindowObject *self, int group_left_1,
24442444
}
24452445

24462446
_cursesmodule_state *st = get_cursesmodule_state_by_cls(Py_TYPE(self));
2447-
return (PyObject *)PyCursesWindow_New(st, win, self->encoding);
2447+
return PyCursesWindow_New(st, win, self->encoding);
24482448
}
24492449

24502450
/*[clinic input]
@@ -3353,7 +3353,7 @@ _curses_initscr_impl(PyObject *module)
33533353
if (curses_initscr_called) {
33543354
wrefresh(stdscr);
33553355
_cursesmodule_state *st = get_cursesmodule_state(module);
3356-
return (PyObject *)PyCursesWindow_New(st, stdscr, NULL);
3356+
return PyCursesWindow_New(st, stdscr, NULL);
33573357
}
33583358

33593359
win = initscr();
@@ -3835,7 +3835,7 @@ _curses_newpad_impl(PyObject *module, int nlines, int ncols)
38353835
}
38363836

38373837
_cursesmodule_state *st = get_cursesmodule_state(module);
3838-
return (PyObject *)PyCursesWindow_New(st, win, NULL);
3838+
return PyCursesWindow_New(st, win, NULL);
38393839
}
38403840

38413841
/*[clinic input]
@@ -3876,7 +3876,7 @@ _curses_newwin_impl(PyObject *module, int nlines, int ncols,
38763876
}
38773877

38783878
_cursesmodule_state *st = get_cursesmodule_state(module);
3879-
return (PyObject *)PyCursesWindow_New(st, win, NULL);
3879+
return PyCursesWindow_New(st, win, NULL);
38803880
}
38813881

38823882
/*[clinic input]

0 commit comments

Comments
 (0)