cheat to avoid warning -Werror=class-memaccess on linux

This commit is contained in:
Adam Lederer 2024-08-18 05:16:38 -07:00 committed by tildearrow
parent 91d36d0a62
commit 94ef697ea6

View file

@ -1025,7 +1025,7 @@ struct DivInstrument : DivInstrumentPOD {
DivInstrument() :
name("") {
// clear and construct DivInstrumentPOD so it doesn't have any garbage in the padding
memset((DivInstrumentPOD*)this, 0, sizeof(DivInstrumentPOD));
memset((unsigned char*)this, 0, sizeof(DivInstrumentPOD));
new ((DivInstrumentPOD*)this) DivInstrumentPOD;
}
};