Fix signed type issue

This commit is contained in:
cam900 2022-04-10 16:43:32 +09:00
parent 68cf969600
commit 228822e19e
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) {
type=(DivInstrumentType)reader.readS(); type=(DivInstrumentType)reader.readS();
} }
if (!istest) { if (!istest) {
type=(DivInstrumentType)reader.readC(); type=(DivInstrumentType)((unsigned char)reader.readC());
} }
mode=(type==DIV_INS_FM); mode=(type==DIV_INS_FM);
reader.readC(); reader.readC();