From eb70c91a4180b1b437040b00296ff0065de6f051 Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Thu, 7 Oct 2021 08:53:58 +0100 Subject: Fix compile errors/warnings found on MSVC * Fix incorrect type used for loop variable (leading to conversion warnings) * Fix use of non-standard datatype u_int8_t Change-Id: Ide43d504e2df259c036e38c448247636dba278ad Signed-off-by: Rob Hughes --- src/backends/backendsCommon/test/layerTests/Conv3dTestImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backends/backendsCommon/test/layerTests/Conv3dTestImpl.cpp') diff --git a/src/backends/backendsCommon/test/layerTests/Conv3dTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/Conv3dTestImpl.cpp index 2f02189051..259272d996 100644 --- a/src/backends/backendsCommon/test/layerTests/Conv3dTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/Conv3dTestImpl.cpp @@ -63,7 +63,7 @@ void ApplyBiasToData(std::vector& v, const std::vector& bias, for (uint32_t i = 0; i < bias.size(); ++i) { - for (long unsigned int j = i; j < v.size(); j+=bias.size()) + for (size_t j = i; j < v.size(); j+=bias.size()) { // Note we need to dequantize and re-quantize the image value and the bias. float dBias = SelectiveDequantize(bias[i], bScale, bOffset); -- cgit v1.2.1