commit 06b836cda6bfc748801cb882c2b490dbe2385635 parent b82bae012c072813884f2101636d2197dea9fff8 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Fri, 6 Oct 2017 17:41:45 +0200 Remove an useless check on params. Diffstat:
| M | src/s3dut_cylinder.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/s3dut_cylinder.c b/src/s3dut_cylinder.c @@ -233,8 +233,8 @@ s3dut_create_thick_cylinder const int nb_closed_ends = (close_bottom ? 1 : 0) + (close_top ? 1 : 0); res_T res = RES_OK; - if(radius <= 0 || height <= 0 || thickness <= 0 - || radius <= thickness || height <= (double)nb_closed_ends * thickness + if(radius <= thickness || height <= 0 || thickness <= 0 + || height <= (double)nb_closed_ends * thickness || nslices < 3 || nstacks < 1 || !mesh) { res = RES_BAD_ARG; goto error;