Skip to content

Commit

Permalink
no ampersand
Browse files Browse the repository at this point in the history
  • Loading branch information
Novakasa committed Nov 27, 2023
1 parent f883441 commit 40a17df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybricks/parameters/pb_type_color.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ STATIC mp_obj_t pb_type_Color_call(mp_obj_t self_in, size_t n_args, size_t n_kw,
}

STATIC mp_obj_t pb_type_Color_get_distance(mp_obj_t self_in, mp_obj_t other_in) {
const pbio_color_hsv_t *self = pb_type_Color_get_hsv(&self_in);
const pbio_color_hsv_t *other = pb_type_Color_get_hsv(&other_in);
const pbio_color_hsv_t *self = pb_type_Color_get_hsv(self_in);
const pbio_color_hsv_t *other = pb_type_Color_get_hsv(other_in);
return mp_obj_new_int(pbio_color_get_bicone_squared_distance(self, other));
}

Expand Down

0 comments on commit 40a17df

Please sign in to comment.