diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-27 02:42:29 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-27 02:42:29 +0300 |
commit | 649c9dcc2ba53a0be994318999beb905c0c14528 (patch) | |
tree | ac1ab5e72d4db4e836bff4751cb080c68ffb6b5f | |
parent | 981b9521eadc49bf30b8f06a47335df3bea1d4f5 (diff) | |
download | libADLMIDI-649c9dcc2ba53a0be994318999beb905c0c14528.tar.gz libADLMIDI-649c9dcc2ba53a0be994318999beb905c0c14528.tar.bz2 libADLMIDI-649c9dcc2ba53a0be994318999beb905c0c14528.zip |
Fixed MinGW-w64 build of DosBox emulator
-rw-r--r-- | src/chips/dosbox/dbopl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<Bitu>(&(chip->chan[ index ])); - ChanOffsetTable[i] = blah; + intptr_t blah = reinterpret_cast<intptr_t>(&(chip->chan[ index ])); + ChanOffsetTable[i] = static_cast<Bit16u>(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<Bitu>(&(chan->op[opNum])); - OpOffsetTable[i] = ChanOffsetTable[ chNum ] + blah; + DBOPL::Channel *chan = NULL; + intptr_t blah = reinterpret_cast<intptr_t>(&(chan->op[opNum])); + OpOffsetTable[i] = static_cast<Bit16u>((intptr_t)ChanOffsetTable[ chNum ] + blah); } #if 0 |