Skip to content

Commit

Permalink
CHAR return zero on no input
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Nov 13, 2023
1 parent f21da69 commit 5162349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forth/core.fth
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
2dup <> while rot repeat
2drop here - here c! here ;
: count dup char+ swap c@ ;
: char bl word char+ c@ ;
: char 0 here char+ c! bl word char+ c@ ;
: [char] char postpone literal ; imm

: ( begin [char] ) key <> while repeat ; imm
Expand Down

0 comments on commit 5162349

Please sign in to comment.