Skip to content

Commit

Permalink
Fixed output on !wide_cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyllingene committed Dec 2, 2023
1 parent 91ac366 commit 2510931
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "brim"
version = "4.0.0"
version = "4.0.1"
edition = "2021"

description = "An optimizing brain* interpreter."
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn interpret(code: &[Token], stdin: &mut impl Iterator<Item = u8>, stdout: &
Token::In => tape[sp] = stdin.next().unwrap_or(0) as Cell,
Token::Out => {
#[allow(clippy::unnecessary_cast)]
let bytes = (tape[sp] as u64).to_ne_bytes();
let bytes = tape[sp].to_ne_bytes();
stdout
.write_all(&bytes)
.unwrap_or_else(|e| err("failed to write to output", e));
Expand Down

0 comments on commit 2510931

Please sign in to comment.