aboutsummaryrefslogtreecommitdiff
path: root/src/midi_sequencer.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2019-12-11 00:44:45 +0300
committerWohlstand <admin@wohlnet.ru>2019-12-11 00:44:45 +0300
commite8b4b2c923c13ff1cd6be6c13298105fd6b7b06d (patch)
tree037a7c387e050a7eaba4fe45b2f889a93029fd9a /src/midi_sequencer.hpp
parentea7aa0efe881cd7d75b3bd5b3b5d8aad158bfefc (diff)
downloadlibADLMIDI-e8b4b2c923c13ff1cd6be6c13298105fd6b7b06d.tar.gz
libADLMIDI-e8b4b2c923c13ff1cd6be6c13298105fd6b7b06d.tar.bz2
libADLMIDI-e8b4b2c923c13ff1cd6be6c13298105fd6b7b06d.zip
MidiSequencer: apply recent typo fixes and a clean-up
Diffstat (limited to 'src/midi_sequencer.hpp')
-rw-r--r--src/midi_sequencer.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/midi_sequencer.hpp b/src/midi_sequencer.hpp
index 6832492..6febecc 100644
--- a/src/midi_sequencer.hpp
+++ b/src/midi_sequencer.hpp
@@ -23,8 +23,8 @@
*/
#pragma once
-#ifndef BISQUIT_AND_WOHLSTANDS_MIDI_SEQUENCER_HHHHPPP
-#define BISQUIT_AND_WOHLSTANDS_MIDI_SEQUENCER_HHHHPPP
+#ifndef BW_MIDI_SEQUENCER_HHHHPPP
+#define BW_MIDI_SEQUENCER_HHHHPPP
#include <list>
#include <vector>
@@ -454,7 +454,7 @@ private:
{
if(caughtStackEnd && (stackLevel >= 0) && (stackLevel < static_cast<int>(stack.size())))
{
- const LoopStackEntry &e = stack[stackLevel];
+ const LoopStackEntry &e = stack[static_cast<size_t>(stackLevel)];
if(e.infinity || (!e.infinity && e.loops > 0))
return true;
}
@@ -474,7 +474,7 @@ private:
LoopStackEntry &getCurStack()
{
if((stackLevel >= 0) && (stackLevel < static_cast<int>(stack.size())))
- return stack[stackLevel];
+ return stack[static_cast<size_t>(stackLevel)];
if(stack.empty())
{
LoopStackEntry d;
@@ -792,4 +792,4 @@ private:
};
-#endif /* BISQUIT_AND_WOHLSTANDS_MIDI_SEQUENCER_HHHHPPP */
+#endif /* BW_MIDI_SEQUENCER_HHHHPPP */