Skip to content

Commit

Permalink
Mark more functions const (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Dec 25, 2024
1 parent 52c7455 commit aea21f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ impl<'a> Memory<'a> {
}

#[inline]
fn unchecked_car(&self, cons: Cons) -> Value {
const fn unchecked_car(&self, cons: Cons) -> Value {
self.heap[cons.index()]
}

#[inline]
fn unchecked_cdr(&self, cons: Cons) -> Value {
const fn unchecked_cdr(&self, cons: Cons) -> Value {
self.heap[cons.index() + 1]
}

Expand Down

0 comments on commit aea21f9

Please sign in to comment.