From 6825e0d51db29062f68466293441cac4dd412894 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Sun, 17 Dec 2023 01:16:01 +0100 Subject: [PATCH] Fix clang-tidy warning --- examples/viewcopy/viewcopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/viewcopy/viewcopy.cpp b/examples/viewcopy/viewcopy.cpp index bca12b247c..98a8f1d71e 100644 --- a/examples/viewcopy/viewcopy.cpp +++ b/examples/viewcopy/viewcopy.cpp @@ -139,7 +139,7 @@ void benchmarkMemcopy(std::size_t dataSize, std::ostream& plotFile) { memcpy(dst.data(), src.data(), dataSize); const auto seconds = watch.getAndReset(); - const auto gbs = dataSize / (seconds * 1024.0 * 1024.0 * 1024.0); + const auto gbs = static_cast(dataSize) / (seconds * 1024.0 * 1024.0 * 1024.0); stats(gbs); } std::cout << name << " " << stats.mean() << "GiB/s\n";