From 78d7fb4da04d08b8101f8365ad353af94eb2b736 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 19 Aug 2024 02:49:14 -0500 Subject: [PATCH] Revert "cheat to avoid warning -Werror=class-memaccess on linux" This reverts commit 94ef697ea615498e6cef13ed9a8987202d3b2742. --- src/engine/instrument.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/instrument.h b/src/engine/instrument.h index bf04dac2e..473cf777e 100644 --- a/src/engine/instrument.h +++ b/src/engine/instrument.h @@ -1025,7 +1025,7 @@ struct DivInstrument : DivInstrumentPOD { DivInstrument() : name("") { // clear and construct DivInstrumentPOD so it doesn't have any garbage in the padding - memset((unsigned char*)this, 0, sizeof(DivInstrumentPOD)); + memset((DivInstrumentPOD*)this, 0, sizeof(DivInstrumentPOD)); new ((DivInstrumentPOD*)this) DivInstrumentPOD; } };