Skip to content

Commit

Permalink
WASM: add required PyObject *_null parameter to remaining functions m…
Browse files Browse the repository at this point in the history
…arked with METH_NOARGS in math.c and color.c (#2482)

that was good hunting !
  • Loading branch information
damusss authored Oct 1, 2023
1 parent bf95d8e commit 6e51743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src_c/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ _color_set_length(pgColorObject *, PyObject *);
static PyObject *
_color_lerp(pgColorObject *, PyObject *, PyObject *);
static PyObject *
_color_grayscale(pgColorObject *);
_color_grayscale(pgColorObject *, PyObject *);
static PyObject *
_premul_alpha(pgColorObject *, PyObject *);
static PyObject *
Expand Down Expand Up @@ -760,7 +760,7 @@ _color_correct_gamma(pgColorObject *color, PyObject *args)
* color.grayscale()
*/
static PyObject *
_color_grayscale(pgColorObject *self)
_color_grayscale(pgColorObject *self, PyObject *_null)
{
// RGBA to GRAY formula used by OpenCV
Uint8 grayscale_pixel =
Expand Down
4 changes: 2 additions & 2 deletions src_c/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ vectoriter_dealloc(vectoriter *it);
static PyObject *
vectoriter_next(vectoriter *it);
static PyObject *
vectoriter_len(vectoriter *it);
vectoriter_len(vectoriter *it, PyObject *_null);
static PyObject *
vector_iter(PyObject *vec);

Expand Down Expand Up @@ -3514,7 +3514,7 @@ vectoriter_next(vectoriter *it)
}

static PyObject *
vectoriter_len(vectoriter *it)
vectoriter_len(vectoriter *it, PyObject *_null)
{
Py_ssize_t len = 0;
if (it && it->vec) {
Expand Down

0 comments on commit 6e51743

Please sign in to comment.