From ab621173afc918797a4ea68b5d6ceee7cc043f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 16 Aug 2022 15:24:24 +0200 Subject: Add data migration test. --- c/data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/data.cpp') diff --git a/c/data.cpp b/c/data.cpp index fe348e7..60decc9 100644 --- a/c/data.cpp +++ b/c/data.cpp @@ -52,14 +52,14 @@ FileView::~FileView() CloseHandle(hf); } -void Write(unsigned char* buf, const ElvData& e) +void Write(unsigned char* buf, const ElvDataA& e) { memcpy(buf, reinterpret_cast(&e), sizeof(e)); } -ElvData* Read(unsigned char* const buf) +ElvDataA* Read(unsigned char* const buf) { if (buf[0] != 'a') return nullptr; - return reinterpret_cast(buf); + return reinterpret_cast(buf); } -- cgit v1.2.3