From 729155d3a41e88ab771944e3555a5ba5f0984cac Mon Sep 17 00:00:00 2001 From: John Date: Sat, 27 Jul 2024 19:38:41 -0500 Subject: [PATCH] ascii.cl: Fix type annotations (though they're not yet evaluated in the interpreter) --- sample-code/ascii.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample-code/ascii.cl b/sample-code/ascii.cl index ad2062d..0660d82 100755 --- a/sample-code/ascii.cl +++ b/sample-code/ascii.cl @@ -39,8 +39,8 @@ fn ascii() { // Start of the C0 control pictures region const CO_CONTROL_PICTURES: u32 = '\u{2400}' as u32; -fn ascii_picture(c: i32) -> char { - if c < ' ' as i32 { // C0 +fn ascii_picture(c: u32) -> char { + if c < ' ' as u32 { // C0 (CO_CONTROL_PICTURES + c) as char } else if c == 127 { // C0:DEL '␡' // SYMBOL_FOR_DELETE