From 46805e8c08e9544957359a4a7ac3cb8f17dadf17 Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 23 Dec 2021 18:54:30 +0800 Subject: [PATCH] Fix warnings --- tests/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/main.cpp b/tests/main.cpp index efdf7b0..432e334 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -206,9 +206,9 @@ int main(int, char** argv) unsigned int failed = total - passed; if (failed != 0) - printf("FAILURE: %u out of %u tests failed, cost %g(s).\n", failed, total, (clock() - start) / (double)CLOCKS_PER_SEC); + printf("FAILURE: %u out of %u tests failed, cost %g(s).\n", failed, total, (clock() - start) / static_cast(CLOCKS_PER_SEC)); else - printf("Success: %u tests passed, cost %g(s).\n", total, (clock() - start) / (double)CLOCKS_PER_SEC); + printf("Success: %u tests passed, cost %g(s).\n", total, (clock() - start) / static_cast(CLOCKS_PER_SEC)); return failed; }