Skip to content

Commit

Permalink
fix: recursion runtime (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtguibas authored Jun 25, 2024
2 parents 31431e9 + 235da5e commit 59206de
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions recursion/core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,15 +1054,11 @@ where
.first_memory_record
.push((F::from_canonical_usize(*addr), *init_value));

// Keep the last memory record sorted by address.
let pos = self
.record
.last_memory_record
.partition_point(|(a, _, _)| *a <= F::from_canonical_usize(*addr));
self.record.last_memory_record.insert(
pos,
(F::from_canonical_usize(*addr), entry.timestamp, entry.value),
)
self.record.last_memory_record.push((
F::from_canonical_usize(*addr),
entry.timestamp,
entry.value,
))
}
self.record
.last_memory_record
Expand Down

0 comments on commit 59206de

Please sign in to comment.