From f9594841926b7f5a6491311c49d29a8be08d7fc9 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Fri, 27 Mar 2020 14:21:52 +0100 Subject: [PATCH] Make block_fnum unsigned in fmopl This value is stored as 32-bit unsigned value elsewhere throughout this file and is being compared against 32-bit unsigned in this function. --- src/hardware/mame/fmopl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hardware/mame/fmopl.cpp b/src/hardware/mame/fmopl.cpp index 34b6bdce..10c2eeab 100644 --- a/src/hardware/mame/fmopl.cpp +++ b/src/hardware/mame/fmopl.cpp @@ -1485,8 +1485,7 @@ void FM_OPL::WriteReg(int r, int v) { OPL_CH *CH; int slot; - int block_fnum; - + uint32_t block_fnum; /* adjust bus to 8 bits */ r &= 0xff;