about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--examples/21.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/21.src b/examples/21.src
index 5e72c27..fbc4d3a 100644
--- a/examples/21.src
+++ b/examples/21.src
@@ -34,8 +34,8 @@ let sort_array = (n: i64, arr: *i64) => void {
 
 			if x > y {
 				let tmp = *(arr + cast(*i64, i));
-				*(arr + cast(*i64, i)) = *(arr + cast(*i64, j));
-				*(arr + cast(*i64, j)) = tmp;
+				(*(arr + cast(*i64, i))) = *(arr + cast(*i64, j));
+				(*(arr + cast(*i64, j))) = tmp;
 			};
 
 			j = j + 1;