From 0fd0206cc325383dc637fb1ce9e2bbc5e3231841 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 11 Jan 2023 00:10:42 -0500 Subject: [PATCH] fix build --- src/engine/engine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 4791bd2df..6ab8f6480 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -1747,7 +1747,7 @@ bool DivEngine::removeSystem(int index, bool preserveOrder) { // patchbay for (size_t i=0; i>20)&0xfff)==index) { + if (((song.patchbay[i]>>20)&0xfff)==(unsigned int)index) { song.patchbay.erase(song.patchbay.begin()+i); i--; } @@ -1897,9 +1897,9 @@ bool DivEngine::swapSystem(int src, int dest, bool preserveOrder) { // patchbay for (unsigned int& i: song.patchbay) { - if (((i>>20)&0xfff)==src) { + if (((i>>20)&0xfff)==(unsigned int)src) { i=(i&(~0xfff00000))|((unsigned int)dest<<20); - } else if (((i>>20)&0xfff)==dest) { + } else if (((i>>20)&0xfff)==(unsigned int)dest) { i=(i&(~0xfff00000))|((unsigned int)src<<20); } }