From 228822e19efdb848c91475ebb2de21fdfb9af46d Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 10 Apr 2022 16:43:32 +0900 Subject: [PATCH] Fix signed type issue --- src/engine/instrument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/instrument.cpp b/src/engine/instrument.cpp index ce25d87a..1d8dbe7c 100644 --- a/src/engine/instrument.cpp +++ b/src/engine/instrument.cpp @@ -609,7 +609,7 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) { type=(DivInstrumentType)reader.readS(); } if (!istest) { - type=(DivInstrumentType)reader.readC(); + type=(DivInstrumentType)((unsigned char)reader.readC()); } mode=(type==DIV_INS_FM); reader.readC();