star-enclosures-2d

Extract enclosures from 2D geometry
git clone git://git.meso-star.fr/star-enclosures-2d.git
Log | Files | Refs | README | LICENSE

commit cc073e8368d199e146da60470454ef4178105e39
parent 7dad9a278f5d33cd7950389104e93d11c1772c7f
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue,  5 Nov 2019 10:21:38 +0100

Remove useless include and fix typos

Diffstat:
Msrc/senc2d_internal_types.h | 2+-
Msrc/senc2d_scene_analyze.c | 2+-
Msrc/test_senc2d_undefined_medium_attr.c | 2--
3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/senc2d_internal_types.h b/src/senc2d_internal_types.h @@ -120,7 +120,7 @@ SEGSIDE_2_SIDEFLAG(side_id_t s) { static FINLINE unsigned char SIDE_CANCELED_FLAG(enum side_flag f) { ASSERT((((unsigned)f) << 4) <= UCHAR_MAX); - return (((unsigned char)f) << 4); + return (unsigned char)(f << 4); } static FINLINE side_id_t diff --git a/src/senc2d_scene_analyze.c b/src/senc2d_scene_analyze.c @@ -323,7 +323,7 @@ extract_connex_components /* Record crt_side both as component and segment level */ if((*seg_used & crt_side_flag) == 0) { OK2(darray_side_id_push_back(&current_component, &crt_side_id)); - *seg_used |= (unsigned char)crt_side_flag; + *seg_used = *seg_used |(unsigned char)crt_side_flag; } /* Store neighbours' sides in a stack */ diff --git a/src/test_senc2d_undefined_medium_attr.c b/src/test_senc2d_undefined_medium_attr.c @@ -19,8 +19,6 @@ #include <rsys/double2.h> -#include <star/s2d.h> - #include <limits.h> #define INVALID_INTFACE_ID UINT_MAX