diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-01 20:02:09 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-01 20:02:09 +0300 |
commit | 5a194eb263125e5505cca3ec0256c7efa348eaa4 (patch) | |
tree | f655dd29013d0cf41d04ba5bb81e8750c9a4fcc1 /src/chips/dosbox/dbopl.cpp | |
parent | 7fd5752dd5f22bdbe175744f33ad998e43f755cf (diff) | |
parent | 49ab43701d5c5800fda3543a9697e5aab2da2638 (diff) | |
download | libADLMIDI-5a194eb263125e5505cca3ec0256c7efa348eaa4.tar.gz libADLMIDI-5a194eb263125e5505cca3ec0256c7efa348eaa4.tar.bz2 libADLMIDI-5a194eb263125e5505cca3ec0256c7efa348eaa4.zip |
Merge branch 'master' into stable
Diffstat (limited to 'src/chips/dosbox/dbopl.cpp')
-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 |