Fix ||= and &&=

This commit is contained in:
gingerBill
2019-05-06 11:32:35 +01:00
parent ea1690b7a1
commit ab0afa548b
4 changed files with 76 additions and 38 deletions
+8
View File
@@ -189,6 +189,14 @@ merge_sort :: proc(array: $A/[]$T) {
}
compare_bools :: proc(a, b: bool) -> int {
switch {
case !a && b: return -1;
case a && !b: return +1;
}
return 0;
}
compare_ints :: proc(a, b: int) -> int {
switch delta := a - b; {