From ac47be51b79f4c3e49656870e135453eefe759ea Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 7 Nov 2024 23:38:52 +0100 Subject: Some more work on asl::string_view --- asl/tests/format_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/tests/format_tests.cpp') diff --git a/asl/tests/format_tests.cpp b/asl/tests/format_tests.cpp index 81395c2..bfde454 100644 --- a/asl/tests/format_tests.cpp +++ b/asl/tests/format_tests.cpp @@ -12,11 +12,11 @@ static_assert(asl::formattable); class StringSink : public asl::writer { - int64_t m_current_len{}; + isize_t m_current_len{}; char* m_data{}; public: - void write(const char* str, int64_t len) override + void write(const char* str, isize_t len) override { m_data = (char*)realloc(m_data, (size_t)(m_current_len + len + 1)); memcpy(m_data + m_current_len, str, (size_t)len); -- cgit