commit 60d7023decc610df689a8aa6c5807a7bc33fd4c4 parent c236a82cdd2c26661b00aa6f2dcd12a6c08e26f2 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Tue, 13 Mar 2018 15:11:10 +0100 BugFix: wrong type-related constants Bug introduced when type size for components was increased. Diffstat:
| M | src/senc_scene_analyze_c.h | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/senc_scene_analyze_c.h b/src/senc_scene_analyze_c.h @@ -104,10 +104,10 @@ struct trgside { * Define lists of trg sides starting from a given head. * Also keeps the maximum z info of the component * along with the associated triangle and vertex ids */ -#define CC_ID_NONE USHRT_MAX -#define CC_GROUP_ROOT_NONE USHRT_MAX -#define CC_GROUP_ROOT_INFINITE (USHRT_MAX-1) -#define CC_GROUP_ID_NONE USHRT_MAX +#define CC_ID_NONE COMPONENT_MAX__ +#define CC_GROUP_ROOT_NONE COMPONENT_MAX__ +#define CC_GROUP_ROOT_INFINITE (COMPONENT_MAX__-1) +#define CC_GROUP_ID_NONE COMPONENT_MAX__ struct cc_descriptor { double max_vrtx[3]; double max_z_nz;