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 /source/fud_assert.cpp | |
parent | c426110f24516f92ecb8a5374e2a281f2c79787a (diff) |
Remove reinterpret_cast usage in favor of std::bit_cast.
Diffstat (limited to 'source/fud_assert.cpp')
-rw-r--r-- | source/fud_assert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fud_assert.cpp b/source/fud_assert.cpp index 425826d..64b3275 100644 --- a/source/fud_assert.cpp +++ b/source/fud_assert.cpp @@ -42,7 +42,7 @@ DrainResult StdErrSink::drain(StringView source) return result; } /* TODO: give users control over this functionality */ - result.bytesDrained = fwrite(reinterpret_cast<const char*>(source.m_data), 1, source.m_length, stderr); + result.bytesDrained = fwrite(std::bit_cast<const char*>(source.m_data), 1, source.m_length, stderr); if (result.bytesDrained != source.m_length) { result.status = FudStatus::Full; } |