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; } };