From 6c7fd1db481ff10a16ecab958c6542784fa60b9c Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 30 Oct 2024 09:51:54 -0500 Subject: Use std::byte* instead of void* for allocators. --- source/fud_assert.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fud_assert.cpp') 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(source.m_data), 1, source.m_length, stderr); - if (result.bytesWritten != source.m_length) { + result.bytesDrained = fwrite(reinterpret_cast(source.m_data), 1, source.m_length, stderr); + if (result.bytesDrained != source.m_length) { result.status = FudStatus::Full; } return result; -- cgit v1.2.3