Skip to content

Commit

Permalink
fix(autoware_image_projection_based_fusion): fix bugprone-misplaced-w…
Browse files Browse the repository at this point in the history
…idening-cast (#9229)

* fix: bugprone-misplaced-widening-cast

Signed-off-by: kobayu858 <[email protected]>

* fix: clang-format

Signed-off-by: kobayu858 <[email protected]>

---------

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Nov 3, 2024
1 parent 8244c86 commit 1392c1f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ void RoiPointCloudFusionNode::fuseOnSingleImage(
const auto & check_roi = feature_obj.feature.roi;
auto & cluster = clusters.at(i);

if (clusters_data_size.at(i) >= static_cast<size_t>(max_cluster_size_ * point_step)) {
if (
clusters_data_size.at(i) >=
static_cast<size_t>(max_cluster_size_) * static_cast<size_t>(point_step)) {
continue;
}
if (
Expand Down

0 comments on commit 1392c1f

Please sign in to comment.