diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-30 09:51:54 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-30 09:51:54 -0500 |
commit | 6c7fd1db481ff10a16ecab958c6542784fa60b9c (patch) | |
tree | e0162f930ec44a7c53b07061311d52910c36e481 /source/fud_assert.cpp | |
parent | 8dcb1de91e15ff7fc66279cd9cd9ad8a70f624e0 (diff) |
Use std::byte* instead of void* for allocators.
Diffstat (limited to 'source/fud_assert.cpp')
-rw-r--r-- | source/fud_assert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fud_assert.cpp b/source/fud_assert.cpp index 7838e22..966f44c 100644 --- a/source/fud_assert.cpp +++ b/source/fud_assert.cpp @@ -42,8 +42,8 @@ DrainResult BufferSink::drain(StringView source) return result; } /* TODO: give users control over this functionality */ - result.bytesWritten = fwrite(reinterpret_cast<const char*>(source.m_data), 1, source.m_length, stderr); - if (result.bytesWritten != source.m_length) { + result.bytesDrained = fwrite(reinterpret_cast<const char*>(source.m_data), 1, source.m_length, stderr); + if (result.bytesDrained != source.m_length) { result.status = FudStatus::Full; } return result; |