diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2018-07-31 04:01:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 04:01:11 +0300 |
commit | e76c56784fb072b9866aee816ad240127909da16 (patch) | |
tree | 3eee2c73c979e0dde7a87a72a9ad77bae5e2f00d /utils | |
parent | af214cc7ebf2eed2788cea58cb658285adfe528b (diff) | |
parent | e098e4285af6d565d7b603279ec6e9770ce88436 (diff) | |
download | libADLMIDI-e76c56784fb072b9866aee816ad240127909da16.tar.gz libADLMIDI-e76c56784fb072b9866aee816ad240127909da16.tar.bz2 libADLMIDI-e76c56784fb072b9866aee816ad240127909da16.zip |
Merge pull request #148 from jpcima/fix-warnings
fix some warnings
Diffstat (limited to 'utils')
-rw-r--r-- | utils/adlmidi-2/puzzlegame.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/adlmidi-2/puzzlegame.cc b/utils/adlmidi-2/puzzlegame.cc index f8fa57c..e7b9890 100644 --- a/utils/adlmidi-2/puzzlegame.cc +++ b/utils/adlmidi-2/puzzlegame.cc @@ -90,7 +90,7 @@ bool ADLMIDI_PuzzleGame::TetrisArea::CascadeEmpty(int FirstY) * FIXME: Improve weird code fragment disliked by CLang * /////////BEGIN//////////// */ - auto label = + auto label = & " SINGLE " " DOUBLE " " TRIPLE " @@ -100,7 +100,7 @@ bool ADLMIDI_PuzzleGame::TetrisArea::CascadeEmpty(int FirstY) " SEXTUPLE " " SEPTUPLE " " OCTUPLE " - + ((n_full - 1) * 10); + [(n_full - 1) * 10]; for(int y = FirstY; y < Height - 1; ++y) { if(list_full & (1u << y)) @@ -214,9 +214,9 @@ int ADLMIDI_PuzzleGame::TetrisAIengine::AI_Run(const decltype(Area)&in_area, con for(unsigned rot2 = 0; rot2 < 4; ++rot2) for(int x2 = -1; x2 <= 1; ++x2) { - positions1.push_back(std::move<position> ({int(rot), x, int(rot2), x2})); + positions1.push_back(position{int(rot), x, int(rot2), x2}); if(rot2 == rot && x2 == 0) - positions2.push_back(std::move<position> ({int(rot), x, int(rot2), x2})); + positions2.push_back(position{int(rot), x, int(rot2), x2}); } confident = false; |