From 5257d9e71a2aa4ba5f5d71cf7e930ff17bbc8b39 Mon Sep 17 00:00:00 2001 From: Sean McBride <sean@rogue-research.com> Date: Wed, 20 Oct 2021 16:54:00 -0400 Subject: Source: fix only -Wshorten-64-to-32 warning with explicit cast --- Source/cmMachO.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmMachO.cxx b/Source/cmMachO.cxx index 53112e0..4ac53ad 100644 --- a/Source/cmMachO.cxx +++ b/Source/cmMachO.cxx @@ -340,7 +340,8 @@ bool cmMachO::GetInstallName(std::string& install_name) if (lc_cmd == LC_ID_DYLIB || lc_cmd == LC_LOAD_WEAK_DYLIB || lc_cmd == LC_LOAD_DYLIB) { if (sizeof(dylib_command) < cmd.LoadCommand.size()) { - uint32_t namelen = cmd.LoadCommand.size() - sizeof(dylib_command); + uint32_t namelen = static_cast<uint32_t>(cmd.LoadCommand.size() - + sizeof(dylib_command)); install_name.assign(&cmd.LoadCommand[sizeof(dylib_command)], namelen); return true; } -- cgit v0.12