Commit 7db253b7 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

Merge branch 'fix-efap-warning' into 'main'

[non-BE] fix MSVC warning and bug in EFAP_FIX_POLY

See merge request !206
parents 97bd8882 e488df01
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1602,7 +1602,7 @@ static float vertex_distance(

#ifdef EFAP_FIX_POLY
/*-------------------------------------------------------------------------*
 * point_plane_distance()
 * point_poly_distance()
 *
 * Compute the signed distance between a point and polygon
 *-------------------------------------------------------------------------*/
@@ -2114,7 +2114,8 @@ static int16_t get_poly_num(
    int16_t i;
#ifdef EFAP_FIX_POLY
    int16_t num_poly, found_poly;
    int16_t poly_tmp[EFAP_MAX_CHAN_NUM], poly_dist[EFAP_MAX_CHAN_NUM];
    int16_t poly_tmp[EFAP_MAX_CHAN_NUM];
    float poly_dist[EFAP_MAX_CHAN_NUM];

    float dist_tmp;
    float pos[3];