mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +00:00
fix build
This commit is contained in:
parent
51802720a6
commit
0fd0206cc3
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue