aboutsummaryrefslogtreecommitdiff
path: root/src/midi_sequencer_impl.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2021-11-20 02:26:22 +0300
committerWohlstand <admin@wohlnet.ru>2021-11-20 02:26:22 +0300
commit757e818b45c279786ac2b040bc6041eea1e6c946 (patch)
tree0af82cff00808e72f868ece59c332a7ea3a58640 /src/midi_sequencer_impl.hpp
parent447b2e55f0c269c10c0010641722590619a75144 (diff)
downloadlibADLMIDI-757e818b45c279786ac2b040bc6041eea1e6c946.tar.gz
libADLMIDI-757e818b45c279786ac2b040bc6041eea1e6c946.tar.bz2
libADLMIDI-757e818b45c279786ac2b040bc6041eea1e6c946.zip
Another small fix
Diffstat (limited to 'src/midi_sequencer_impl.hpp')
-rw-r--r--src/midi_sequencer_impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/midi_sequencer_impl.hpp b/src/midi_sequencer_impl.hpp
index 9136cb6..d6c4f55 100644
--- a/src/midi_sequencer_impl.hpp
+++ b/src/midi_sequencer_impl.hpp
@@ -1881,8 +1881,8 @@ void BW_MidiSequencer::handleEvent(size_t track, const BW_MidiSequencer::MidiEve
}
char x = data[0];
- size_t s_addr = static_cast<size_t>(m_loop.stackLevel + 1);
- while(s_addr >= m_loop.stack.size())
+ size_t slevel = static_cast<size_t>(m_loop.stackLevel + 1);
+ while(slevel >= m_loop.stack.size())
{
LoopStackEntry e;
e.loops = x;
@@ -1892,7 +1892,7 @@ void BW_MidiSequencer::handleEvent(size_t track, const BW_MidiSequencer::MidiEve
m_loop.stack.push_back(e);
}
- LoopStackEntry &s = m_loop.stack[s_addr];
+ LoopStackEntry &s = m_loop.stack[slevel];
s.loops = static_cast<int>(x);
s.infinity = (x == 0);
m_loop.caughtStackStart = true;