From 0edf822f996c5def4588cc207d1977cffc3e9a0c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Apr 2015 18:31:26 -0700 Subject: 1062 - bugfix: wasn't aliasing Current_routine You can't write tests for stupidity. --- cpp/027space | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/027space') diff --git a/cpp/027space b/cpp/027space index 9d3ef572..2a845015 100644 --- a/cpp/027space +++ b/cpp/027space @@ -52,7 +52,7 @@ result.properties.push_back(pair >("raw", vector( :(code) int space(const reagent& x) { - return Current_routine.calls.top().default_space; + return Current_routine->calls.top().default_space; } int address(int offset, int base) { @@ -67,8 +67,8 @@ int address(int offset, int base) { :(after "void write_memory(reagent x, vector data)") if (x.name == "default-space") { assert(data.size() == 1); - Current_routine.calls.top().default_space = data[0]; -//? cout << "AAA " << Current_routine.calls.top().default_space << '\n'; //? 1 + Current_routine->calls.top().default_space = data[0]; +//? cout << "AAA " << Current_routine->calls.top().default_space << '\n'; //? 1 return; } @@ -82,6 +82,6 @@ recipe main [ :(after "vector read_memory(reagent x)") if (x.name == "default-space") { vector result; - result.push_back(Current_routine.calls.top().default_space); + result.push_back(Current_routine->calls.top().default_space); return result; } -- cgit 1.4.1-2-gfad0