commit f0ebdb175ec76f51d8abce83165d48d9009f7c60
parent 5a7af779a3a624a87f6abc650e6ce1d758df3379
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 6 Apr 2018 16:21:02 +0200
Fix the check of iprim in the sdis_solve_probe_boundary function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sdis_solve.c b/src/sdis_solve.c
@@ -295,7 +295,7 @@ sdis_solve_probe_boundary
}
/* Check the primitive identifier */
- if(iprim > scene_get_primitives_count(scn)) {
+ if(iprim >= scene_get_primitives_count(scn)) {
log_err(scn->dev,
"%s: invalid primitive identifier `%lu'. It must be less than %lu.\n",
FUNC_NAME,