ascii.cl: Fix type annotations (though they're not yet evaluated in the interpreter)

This commit is contained in:
John 2024-07-27 19:38:41 -05:00
parent 8c0ae02a71
commit 729155d3a4

View File

@ -39,8 +39,8 @@ fn ascii() {
// Start of the C0 control pictures region // Start of the C0 control pictures region
const CO_CONTROL_PICTURES: u32 = '\u{2400}' as u32; const CO_CONTROL_PICTURES: u32 = '\u{2400}' as u32;
fn ascii_picture(c: i32) -> char { fn ascii_picture(c: u32) -> char {
if c < ' ' as i32 { // C0 if c < ' ' as u32 { // C0
(CO_CONTROL_PICTURES + c) as char (CO_CONTROL_PICTURES + c) as char
} else if c == 127 { // C0:DEL } else if c == 127 { // C0:DEL
'' // SYMBOL_FOR_DELETE '' // SYMBOL_FOR_DELETE