fixed some warnings in RogueViz

This commit is contained in:
Zeno Rogue 2019-09-13 18:53:19 +02:00
parent 973d8cb451
commit cf0b13b5b2
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ splitter split(string s) {
if(c == 'd') add(swapped ? s1 : s0, 'b');
if(c == 'a') swapped = !swapped;
}
return {swapped, s0, s1};
return splitter{swapped, s0, s1};
}
splitter split_slow(string s) {
@ -73,7 +73,7 @@ splitter split_slow(string s) {
if(c == 'd') ((swapped ? s1 : s0) += 'b'), ((swapped ? s0 : s1) += '-');
if(c == 'a') swapped = !swapped, s0 += '-', s1 += '-';
}
return {swapped, s0, s1};
return splitter{swapped, s0, s1};
}
string reduce(const string& x) {