From d55b28de6f56a30017db594be443dd975cf849f2 Mon Sep 17 00:00:00 2001 From: "Igor (ZharkovIG)" Date: Sat, 26 Oct 2024 19:16:17 +0300 Subject: [PATCH] code: fix --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e438211..99dfaeb 100644 --- a/main.cpp +++ b/main.cpp @@ -36,7 +36,7 @@ write_data(void* items, size_t item_size, size_t item_count, void* ctx){ size_t data_size = item_size * item_count; stringstream* buffer = reinterpret_cast(ctx); buffer->write(reinterpret_cast(items), data_size); - return 0; + return data_size; } Input