From c89998fa843de85d6f107e4b346f3490a188367a Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 26 Aug 2021 14:11:44 +0100 Subject: Fix strict overflow warnings Resolves COMPMID-2138 Change-Id: I5587fe53ec99d164413cde1809d1791bf909b8df Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6171 Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- src/gpu/cl/kernels/ClCropKernel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gpu') 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) { -- cgit v1.2.1