From df1dd28427e5e133f23247c0dcece744e9ebf5b1 Mon Sep 17 00:00:00 2001 From: fiona-gladwin Date: Fri, 16 Sep 2022 09:45:49 -0400 Subject: [PATCH] Minor codacy fix --- .../source/augmentations/geometry_augmentations/node_resize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocAL/rocAL/source/augmentations/geometry_augmentations/node_resize.cpp b/rocAL/rocAL/source/augmentations/geometry_augmentations/node_resize.cpp index 200150d762..418efc7ef9 100644 --- a/rocAL/rocAL/source/augmentations/geometry_augmentations/node_resize.cpp +++ b/rocAL/rocAL/source/augmentations/geometry_augmentations/node_resize.cpp @@ -100,7 +100,7 @@ void ResizeNode::adjust_out_roi_size() { bool has_max_size = _max_roi_size.size() > 0; for (unsigned i = 0; i < dim; i++) { has_size[i] = (_src_roi_size[i] != 0) && (_dst_roi_size[i] != 0); - sizes_provided += has_size[i]; + sizes_provided += (has_size[i] ? 1 : 0); scale[i] = _src_roi_size[i] ? (_dst_roi_size[i] / static_cast(_src_roi_size[i])) : 1; } if (_scaling_mode == RocalResizeScalingMode::ROCAL_SCALING_MODE_STRETCH) { if (sizes_provided < dim) {