fix build

This commit is contained in:
tildearrow 2023-01-11 00:10:42 -05:00
parent 51802720a6
commit 0fd0206cc3

View file

@ -1747,7 +1747,7 @@ bool DivEngine::removeSystem(int index, bool preserveOrder) {
// patchbay // patchbay
for (size_t i=0; i<song.patchbay.size(); i++) { for (size_t i=0; i<song.patchbay.size(); i++) {
if (((song.patchbay[i]>>20)&0xfff)==index) { if (((song.patchbay[i]>>20)&0xfff)==(unsigned int)index) {
song.patchbay.erase(song.patchbay.begin()+i); song.patchbay.erase(song.patchbay.begin()+i);
i--; i--;
} }
@ -1897,9 +1897,9 @@ bool DivEngine::swapSystem(int src, int dest, bool preserveOrder) {
// patchbay // patchbay
for (unsigned int& i: song.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); 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); i=(i&(~0xfff00000))|((unsigned int)src<<20);
} }
} }