Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Sep 17, 2024
1 parent 1b39c9b commit b61c373
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions 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 crates/erars-ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ordered-float = { version = "3.0.0", features = ["serde"] }
serde = { version = "1.0.142", features = ["derive"] }
strum = { version = "0.24.1", features = ["derive", "phf"] }
anyhow = { version = "1" }
lasso = { version = "0.7.2", features = ["multi-threaded", "ahasher", "serialize"] }
lasso = { version = "0.7.3", features = ["multi-threaded", "ahasher", "serialize"] }

[dev-dependencies]
k9 = "0.11.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/erars-compiler/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl Compiler {
if let Ok(i) = i.try_into() {
self.push(Instruction::load_int(i))
} else {
#[cfg(target_engian = "big")]
#[cfg(target_endian = "big")]
compile_error!("Big endian not supported");
let (l, r): (i32, i32) = unsafe { std::mem::transmute(i) };
self.push(Instruction::load_int(l));
Expand Down
2 changes: 1 addition & 1 deletion crates/erars-vm/src/terminal_vm/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub(super) fn run_instruction(
ctx.push(i as i64);
} else if let Some(r) = inst.as_load_int_suffix() {
let l = ctx.pop_int()? as i32;
#[cfg(target_engian = "big")]
#[cfg(target_endian = "big")]
compile_error!("Big endian not supported");
let i: i64 = unsafe { std::mem::transmute((l, r)) };
ctx.push(i);
Expand Down

0 comments on commit b61c373

Please sign in to comment.