diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-03-31 08:33:08 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-03-31 08:33:08 -0500 |
commit | 8b0bc70db73b48d833a3b5791e55921768cf6932 (patch) | |
tree | 862ae34933a7fc9f480038d974f59d7683a82605 /test/test_common.cpp | |
parent | c426110f24516f92ecb8a5374e2a281f2c79787a (diff) |
Remove reinterpret_cast usage in favor of std::bit_cast.
Diffstat (limited to 'test/test_common.cpp')
-rw-r--r-- | test/test_common.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_common.cpp b/test/test_common.cpp index 03c5dff..926bd49 100644 --- a/test/test_common.cpp +++ b/test/test_common.cpp @@ -105,8 +105,7 @@ FudStatus removeRecursive(StringView path) } constexpr int maxOpenFd = 64; - // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) - auto status = nftw(reinterpret_cast<const char*>(path.data()), unlink_cb, maxOpenFd, FTW_DEPTH | FTW_PHYS); + auto status = nftw(std::bit_cast<const char*>(path.data()), unlink_cb, maxOpenFd, FTW_DEPTH | FTW_PHYS); if (status == 0) { return FudStatus::Success; } |