Fix ||= and &&=
This commit is contained in:
1 parent
ea1690b7a1
commit
ab0afa548b
4 files changed
+76
-38
No files matched your search
@@ -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; {
|
||||
|
||||
Reference in new issue
Block a user