From cf39ab8695190e251bfe4176ca9f5e610c9de5ab Mon Sep 17 00:00:00 2001 From: isucan <isucan@253336fb-580f-4252-a368-f3cef5a2a82b> Date: Wed, 5 Sep 2012 16:19:09 +0000 Subject: [PATCH] fix clang warning git-svn-id: https://kforge.ros.org/fcl/fcl_ros@186 253336fb-580f-4252-a368-f3cef5a2a82b --- trunk/fcl/include/fcl/shape/geometric_shape_to_BVH_model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/fcl/include/fcl/shape/geometric_shape_to_BVH_model.h b/trunk/fcl/include/fcl/shape/geometric_shape_to_BVH_model.h index 7a9f83f9..7d542151 100644 --- a/trunk/fcl/include/fcl/shape/geometric_shape_to_BVH_model.h +++ b/trunk/fcl/include/fcl/shape/geometric_shape_to_BVH_model.h @@ -298,7 +298,7 @@ void generateBVHModel(BVHModel<BV>& model, const Cone& shape, const Transform3f& for(unsigned int i = 0; i < tot; ++i) { - Triangle tmp(h_num * tot + 1, (h_num - 1) * tot + (i == tot - 1) ? 0 : (i + 1), (h_num - 1) * tot + i); + Triangle tmp(h_num * tot + 1, (h_num - 1) * tot + ((i == tot - 1) ? 0 : (i + 1)), (h_num - 1) * tot + i); tri_indices.push_back(tmp); } -- GitLab