Skip to content

Commit

Permalink
chore: separate out NATIVE_AS
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun committed Jan 1, 2025
1 parent 1ac8e63 commit 924e01e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/native/compiler/src/conversion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ fn inst_large<F: PrimeField64>(
}
}

pub const NATIVE_AS: u32 = 5;

#[derive(Clone, Copy)]
enum AS {
Immediate,
Expand All @@ -116,7 +118,7 @@ impl AS {
fn to_field<F: PrimeField64>(self) -> F {
match self {
AS::Immediate => F::ZERO,
AS::Native => F::from_canonical_u32(5u32),
AS::Native => F::from_canonical_u32(NATIVE_AS),
}
}
}
Expand Down

0 comments on commit 924e01e

Please sign in to comment.