summaryrefslogtreecommitdiffstats
path: root/bytecode/src/heap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bytecode/src/heap.rs')
-rw-r--r--bytecode/src/heap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bytecode/src/heap.rs b/bytecode/src/heap.rs
index 45ce283..970db7d 100644
--- a/bytecode/src/heap.rs
+++ b/bytecode/src/heap.rs
@@ -1,7 +1,7 @@
use crate::value::Value;
use std::error::Error;
-pub const NUM_LOCALS: usize = 8;
+pub const NUM_LOCALS: usize = 256;
#[derive(Debug)]
pub struct Heap {
@@ -27,7 +27,7 @@ impl Heap {
let Some(q) = Value(self.buf[p]).to_pointer() else {
return false;
};
- return self.first_active == (q < self.buf.len() / 2);
+ self.first_active == (q < self.buf.len() / 2)
}
fn alloc_size(&self, p: usize) -> usize {