chore(arc): implicit conversion turns floating-point number into integer (#5184)

This commit is contained in:
Benign X
2024-01-04 18:01:24 +08:00
committed by GitHub
parent 903be11056
commit 6799da9cae

View File

@@ -955,7 +955,7 @@ static bool lv_arc_angle_within_bg_bounds(lv_obj_t * obj, const lv_value_precise
/* Distance between background start and end angles is less than tolerance,
* consider the click inside the arc */
else if(((smaller_angle - tolerance_deg) <= 0) &&
(360 - (bigger_angle + (smaller_angle - tolerance_deg)))) {
(360 - (bigger_angle + (smaller_angle - tolerance_deg))) != 0) {
arc->min_close = 1;
arc->in_out = CLICK_INSIDE_BG_ANGLES;