diff options
author | Sean McBride <sean@rogue-research.com> | 2021-10-20 20:54:00 (GMT) |
---|---|---|
committer | Sean McBride <sean@rogue-research.com> | 2021-10-25 16:27:08 (GMT) |
commit | 5257d9e71a2aa4ba5f5d71cf7e930ff17bbc8b39 (patch) | |
tree | a98c7aa40aa82c6df0240158265072e66e44cfe9 /Source/cmMachO.cxx | |
parent | 0ce50dd78f68b697e1ab29d52d733b87c5bfb67d (diff) | |
download | CMake-5257d9e71a2aa4ba5f5d71cf7e930ff17bbc8b39.zip CMake-5257d9e71a2aa4ba5f5d71cf7e930ff17bbc8b39.tar.gz CMake-5257d9e71a2aa4ba5f5d71cf7e930ff17bbc8b39.tar.bz2 |
Source: fix only -Wshorten-64-to-32 warning with explicit cast
Diffstat (limited to 'Source/cmMachO.cxx')
-rw-r--r-- | Source/cmMachO.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |