From 0bfc45929894ef8a1409f4d751407d359eb70d17 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 20 Mar 2025 22:11:36 -0500 Subject: [PATCH] Part: Don't cast time_t to a potentially 32-bit type Coverity (and possibly other static analyzers) detect when we attempt to use a time_t as what might be a 32-bit value, warning about Y2K38 safety. It is irrelevant in this case, but make the change to avoid the warning (so it doesn't hide any real problems). --- src/Mod/Part/App/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index b547e1c790..bb3d7d2a8d 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -469,7 +469,7 @@ void Geometry::createNewTag() boost::lock_guard guard(random_number_mutex); if (!seeded) { - ran.seed(static_cast(std::time(nullptr))); + ran.seed(static_cast(std::time(nullptr))); seeded = true; } static boost::uuids::basic_random_generator gen(&ran);