diff options
Diffstat (limited to 'tests/validation/reference/Sobel.cpp')
-rw-r--r-- | tests/validation/reference/Sobel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/validation/reference/Sobel.cpp b/tests/validation/reference/Sobel.cpp index 233f1ad4fc..1f35717fb9 100644 --- a/tests/validation/reference/Sobel.cpp +++ b/tests/validation/reference/Sobel.cpp @@ -110,7 +110,8 @@ std::pair<SimpleTensor<T>, SimpleTensor<T>> sobel(const SimpleTensor<U> &src, in ValidRegion valid_region = shape_to_valid_region(src.shape(), border_mode == BorderMode::UNDEFINED, BorderSize(filter_size / 2)); - for(int i = 0; i < src.num_elements(); ++i) + const uint32_t num_elements = src.num_elements(); + for(uint32_t i = 0; i < num_elements; ++i) { Coordinates coord = index2coord(src.shape(), i); |