diff --git a/src_c/circle.c b/src_c/circle.c index 5c07e7e6d8..d061a570f4 100644 --- a/src_c/circle.c +++ b/src_c/circle.c @@ -39,8 +39,8 @@ pgCircle_FromObject(PyObject *obj, pgCircleBase *out) length = PySequence_Fast_GET_SIZE(obj); if (length == 3) { - if (!pg_DoubleFromObj(f_arr[0], &(out->x)) || - !pg_DoubleFromObj(f_arr[1], &(out->y)) || + if (!pg_DoubleFromObj(f_arr[0], &out->x) || + !pg_DoubleFromObj(f_arr[1], &out->y) || !_pg_circle_set_radius(f_arr[2], out)) { return 0; } @@ -53,7 +53,7 @@ pgCircle_FromObject(PyObject *obj, pgCircleBase *out) return 1; } else if (length == 2) { - if (!pg_TwoDoublesFromObj(f_arr[0], &(out->x), &(out->y)) || + if (!pg_TwoDoublesFromObj(f_arr[0], &out->x, &out->y) || !_pg_circle_set_radius(f_arr[1], out)) { return 0; } @@ -73,14 +73,14 @@ pgCircle_FromObject(PyObject *obj, pgCircleBase *out) /*These are to be substituted with better pg_DoubleFromSeqIndex() * implementations*/ tmp = PySequence_ITEM(obj, 0); - if (!pg_DoubleFromObj(tmp, &(out->x))) { + if (!pg_DoubleFromObj(tmp, &out->x)) { Py_DECREF(tmp); return 0; } Py_DECREF(tmp); tmp = PySequence_ITEM(obj, 1); - if (!pg_DoubleFromObj(tmp, &(out->y))) { + if (!pg_DoubleFromObj(tmp, &out->y)) { Py_DECREF(tmp); return 0; } @@ -97,7 +97,7 @@ pgCircle_FromObject(PyObject *obj, pgCircleBase *out) } else if (length == 2) { tmp = PySequence_ITEM(obj, 0); - if (!pg_TwoDoublesFromObj(tmp, &(out->x), &(out->y))) { + if (!pg_TwoDoublesFromObj(tmp, &out->x, &out->y)) { Py_DECREF(tmp); return 0; }