From 649c9dcc2ba53a0be994318999beb905c0c14528 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Fri, 27 Apr 2018 02:42:29 +0300 Subject: Fixed MinGW-w64 build of DosBox emulator --- src/chips/dosbox/dbopl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/chips/dosbox/dbopl.cpp') diff --git a/src/chips/dosbox/dbopl.cpp b/src/chips/dosbox/dbopl.cpp index 8834524..3e21772 100644 --- a/src/chips/dosbox/dbopl.cpp +++ b/src/chips/dosbox/dbopl.cpp @@ -1875,8 +1875,8 @@ namespace DBOPL if(i >= 16) index += 9; - Bitu blah = reinterpret_cast(&(chip->chan[ index ])); - ChanOffsetTable[i] = blah; + intptr_t blah = reinterpret_cast(&(chip->chan[ index ])); + ChanOffsetTable[i] = static_cast(blah); } //Same for operators @@ -1895,9 +1895,9 @@ namespace DBOPL chNum += 16 - 12; Bitu opNum = (i % 8) / 3; - DBOPL::Channel *chan = 0; - Bitu blah = reinterpret_cast(&(chan->op[opNum])); - OpOffsetTable[i] = ChanOffsetTable[ chNum ] + blah; + DBOPL::Channel *chan = NULL; + intptr_t blah = reinterpret_cast(&(chan->op[opNum])); + OpOffsetTable[i] = static_cast((intptr_t)ChanOffsetTable[ chNum ] + blah); } #if 0 -- cgit v1.2.3