From f4f9ce4b77e5051b56bacda7c7ea160ac60abb1f Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 8 Dec 2021 22:45:18 +0300 Subject: [PATCH] 0032727: Coding Rules - eliminate CLang warning -Wshorten-64-to-32 in MessageView_ActionsTest.cxx --- tools/MessageView/MessageView_ActionsTest.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/MessageView/MessageView_ActionsTest.cxx b/tools/MessageView/MessageView_ActionsTest.cxx index c085a11de2..afa98b16f9 100644 --- a/tools/MessageView/MessageView_ActionsTest.cxx +++ b/tools/MessageView/MessageView_ActionsTest.cxx @@ -150,7 +150,7 @@ void MessageView_ActionsTest::OnTestMetric() return; OCCT_ADD_MESSAGE_LEVEL_SENTRY ("MessageModel_Actions::OnTestMetric()"); - unsigned int start_time = clock(); + clock_t start_time = clock(); Standard_Integer aCounter = 1500; Standard_Real aValue = 0., aValue2 = 0.1; @@ -172,7 +172,7 @@ void MessageView_ActionsTest::OnTestMetric() myTreeModel->UpdateTreeModel(); - unsigned int end_time = clock(); + clock_t end_time = clock(); std::cout << "clock() = " << end_time - start_time << std::endl; }