From 5737e8430d43b3b5bd448f761cd2f3c35707a174 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sun, 28 Apr 2024 15:06:43 -0700 Subject: Add case over int. --- bytecode/src/heap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bytecode/src/heap.rs') 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 { -- cgit v1.3.1