From ed08a7a2a8a5fdd17e3eaeb8d82174d7211ea5ea Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 24 May 2025 17:37:52 +0200 Subject: Examples: Fix example 21 --- examples/21.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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; -- cgit 1.4.1