diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-02-21 19:40:55 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2023-02-21 19:40:55 +0100 |
commit | 404761cf4df321580b40baacd50cd3d3e5cb643f (patch) | |
tree | c27049b64866ec6755648caaf50879df8de96eee | |
parent | 09673eb553b3dc7c67627b51c34a8b9cc2f8d0f4 (diff) | |
download | patchelf-404761cf4df321580b40baacd50cd3d3e5cb643f.tar.gz |
Use C++ casts instead of raw C ones in hdr()
-rw-r--r-- | src/patchelf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patchelf.h b/src/patchelf.h index 79e7a17..7c1165b 100644 --- a/src/patchelf.h +++ b/src/patchelf.h @@ -165,10 +165,10 @@ private: } [[nodiscard]] Elf_Ehdr *hdr() noexcept { - return (Elf_Ehdr *)fileContents->data(); + return reinterpret_cast<Elf_Ehdr *>(fileContents->data()); } [[nodiscard]] const Elf_Ehdr *hdr() const noexcept { - return (const Elf_Ehdr *)fileContents->data(); + return reinterpret_cast<const Elf_Ehdr *>(fileContents->data()); } }; |