diff --git a/src/engine/instrument.h b/src/engine/instrument.h index 473cf777e..bf04dac2e 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((DivInstrumentPOD*)this, 0, sizeof(DivInstrumentPOD)); + memset((unsigned char*)this, 0, sizeof(DivInstrumentPOD)); new ((DivInstrumentPOD*)this) DivInstrumentPOD; } };