Fix ||= and &&=

This commit is contained in:
gingerBill committed 2019-05-06 11:32:35 +01:00
1 parent ea1690b7a1
commit ab0afa548b
4 files changed
+76 -38

No files matched your search

+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; {