From c83b1313812dd2e40380d2cb7cdde8fff5e2f459 Mon Sep 17 00:00:00 2001 From: Goren Barak Date: Mon, 11 Dec 2023 17:42:45 -0500 Subject: [PATCH] not compiling >:-( --- src/codegen/fasm.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/codegen/fasm.rs b/src/codegen/fasm.rs index 6b270df..75453f1 100644 --- a/src/codegen/fasm.rs +++ b/src/codegen/fasm.rs @@ -79,13 +79,15 @@ impl FasmCodegen { } else { self.use_queue = false; } - let mut register_counter = Box::new(self.register_counter); + let mut register_counter = &self.register_counter; if self.use_queue { println!("self.use_queue"); if let Some(OperationQueue::RegisterCounter(q)) = self.operation_queue.pop() { - register_counter = Box::new(q); + register_counter = &q; } } + + dbg!(*register_counter, self.register_counter, self.use_queue); unwrap!(e.left); self.register_counter += 1;