From 463e4458d710a00f18f1b892b021d3ecd4cf2b6f Mon Sep 17 00:00:00 2001 From: Vladimir Paramuzov Date: Wed, 11 Oct 2023 15:05:32 +0400 Subject: [PATCH] [TESTS] Fix random generator for custom signed types --- .../common_test_utils/include/common_test_utils/data_utils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/test_utils/common_test_utils/include/common_test_utils/data_utils.hpp b/src/tests/test_utils/common_test_utils/include/common_test_utils/data_utils.hpp index eacad438e30dfb..55994c7f6b90ae 100644 --- a/src/tests/test_utils/common_test_utils/include/common_test_utils/data_utils.hpp +++ b/src/tests/test_utils/common_test_utils/include/common_test_utils/data_utils.hpp @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include @@ -223,7 +224,7 @@ void inline fill_data_random(T* pointer, const uint32_t k_range = k * range; // range with respect to k random.Generate(k_range); - if (start_from < 0 && !std::is_signed::value) { + if (start_from < 0 && !std::numeric_limits::is_signed) { start_from = 0; } for (std::size_t i = 0; i < size; i++) {