diff options
author | Brad King <brad.king@kitware.com> | 2022-01-11 15:57:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-11 15:57:44 (GMT) |
commit | f52dac56a012b1456c63ec352b298ed236d059fb (patch) | |
tree | 993c9413ff8c35ef45afdaf1b96c20552e3c7a37 /Source/kwsys/SystemInformation.cxx | |
parent | ddc6be2c196fab3eedf5e243cb0fb387a52a4271 (diff) | |
parent | 6e8a2de4cb2bacb9eab287fe096a8650e58b0e16 (diff) | |
download | CMake-f52dac56a012b1456c63ec352b298ed236d059fb.zip CMake-f52dac56a012b1456c63ec352b298ed236d059fb.tar.gz CMake-f52dac56a012b1456c63ec352b298ed236d059fb.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2022-01-11 (15b0b0c4)
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index ecb9bf3..dcbf367 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -1265,11 +1265,10 @@ public: } private: - void* GetRealAddress() const + size_t GetRealAddress() const { - return reinterpret_cast<void*>( - static_cast<char*>(this->Address) - - static_cast<char*>(this->BinaryBaseAddress)); + return static_cast<size_t>(static_cast<char*>(this->Address) - + static_cast<char*>(this->BinaryBaseAddress)); } std::string GetFileName(const std::string& path) const; |