From 9b9558ce9fd892b3b639048146e86394ea68913b Mon Sep 17 00:00:00 2001 From: ala89 Date: Wed, 3 Jan 2024 14:45:13 +0100 Subject: [PATCH] Fix pointer typo --- src/execute.cpp | 2 +- src/include/execute.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/execute.cpp b/src/execute.cpp index 174dadf..8f44793 100644 --- a/src/execute.cpp +++ b/src/execute.cpp @@ -4,7 +4,7 @@ using namespace std; #include "include/execute.h" -EvalResult execute(vector input, Memory memory, int initial_line, ExecArgs args) { +EvalResult execute(vector input, Memory& memory, int initial_line, ExecArgs args) { try { vector tokens = tokenize(input, initial_line); diff --git a/src/include/execute.h b/src/include/execute.h index d785fd7..4208c5b 100644 --- a/src/include/execute.h +++ b/src/include/execute.h @@ -16,6 +16,6 @@ typedef struct ExecArgs { bool dump_mem=false; } ExecArgs; -EvalResult execute(vector input, Memory memory, int initial_line=0, ExecArgs args={}); +EvalResult execute(vector input, Memory& memory, int initial_line=0, ExecArgs args={}); #endif \ No newline at end of file