not compiling >:-(

This commit is contained in:
Goren Barak 2023-12-11 17:42:45 -05:00
parent 7d7bac18c6
commit c83b131381

View file

@ -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;