From 02239c5ce4b6e15affbebffa52d4974e0593e2fd Mon Sep 17 00:00:00 2001 From: John Date: Mon, 15 Sep 2025 00:22:38 -0400 Subject: [PATCH] sample-code/ascii: fix reference depth for postfix-call `in_range` function --- sample-code/ascii.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample-code/ascii.cl b/sample-code/ascii.cl index c4bbc0a..98ead66 100755 --- a/sample-code/ascii.cl +++ b/sample-code/ascii.cl @@ -14,7 +14,7 @@ fn n_digit(n: u32) -> char { }) as char } -fn in_range(num: u32, start: u32, end: u32) -> bool { +fn in_range(&num: &u32, start: u32, end: u32) -> bool { (start <= num) && (num <= end ) }