aboutsummaryrefslogtreecommitdiff
path: root/src/gpu/cl/kernels/ClCropKernel.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2021-08-26 14:11:44 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2021-09-01 09:02:01 +0000
commitc89998fa843de85d6f107e4b346f3490a188367a (patch)
tree5c091b122a8d70b45239b52b891f25353dc1926e /src/gpu/cl/kernels/ClCropKernel.cpp
parent7891a73ef36f4ad7b71069b3c57694f85bb79454 (diff)
downloadComputeLibrary-c89998fa843de85d6f107e4b346f3490a188367a.tar.gz
Fix strict overflow warnings
Resolves COMPMID-2138 Change-Id: I5587fe53ec99d164413cde1809d1791bf909b8df Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6171 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/gpu/cl/kernels/ClCropKernel.cpp')
-rw-r--r--src/gpu/cl/kernels/ClCropKernel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/cl/kernels/ClCropKernel.cpp b/src/gpu/cl/kernels/ClCropKernel.cpp
index c7e5537977..87ad6b49d9 100644
--- a/src/gpu/cl/kernels/ClCropKernel.cpp
+++ b/src/gpu/cl/kernels/ClCropKernel.cpp
@@ -56,7 +56,7 @@ void ClCropKernel::configure(const CLCompileContext &compile_context, const ITen
_batch_index = batch_index;
_extrapolation_value = extrapolation_value;
- const int vec_size_x = 4;
+ const uint32_t vec_size_x = 4;
// Create and update the window (if needed)
Window win = calculate_max_window(*dst);
@@ -66,9 +66,9 @@ void ClCropKernel::configure(const CLCompileContext &compile_context, const ITen
win = *dst_window;
}
- const int dst_width_x = win.num_iterations(0);
- const bool multi_access_x = dst_width_x >= vec_size_x;
- const bool remainder_x = dst_width_x % vec_size_x > 0;
+ const uint32_t dst_width_x = win.num_iterations(0);
+ const bool multi_access_x = dst_width_x >= vec_size_x;
+ const bool remainder_x = dst_width_x % vec_size_x > 0;
if(multi_access_x)
{