From f8da5e2b22712aafe0f76a002c421489ec1fc795 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 17 Mar 2025 13:28:12 +0100 Subject: [PATCH] crn_decomp: fix non-trivially copyable pointer --- inc/crn_decomp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/crn_decomp.h b/inc/crn_decomp.h index fb88b716..1abb5558 100644 --- a/inc/crn_decomp.h +++ b/inc/crn_decomp.h @@ -1456,7 +1456,7 @@ class decoder_tables { clear(); - memcpy(this, &other, sizeof(*this)); + memcpy((void*) this, &other, sizeof(*this)); if (other.m_lookup) { m_lookup = crnd_new_array(m_cur_lookup_size);