diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-14 18:31:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-14 18:31:26 -0700 |
commit | 0edf822f996c5def4588cc207d1977cffc3e9a0c (patch) | |
tree | 275ee8b5c5f4e96f60f98fa74e546c3899bf9215 /cpp/027space | |
parent | e05847550c276debb831eb4853474b0da38614ef (diff) | |
download | mu-0edf822f996c5def4588cc207d1977cffc3e9a0c.tar.gz |
1062 - bugfix: wasn't aliasing Current_routine
You can't write tests for stupidity.
Diffstat (limited to 'cpp/027space')
-rw-r--r-- | cpp/027space | 8 |
1 files changed, 4 insertions, 4 deletions
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<string, vector<string> >("raw", vector<string>( :(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<int> 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<int> read_memory(reagent x)") if (x.name == "default-space") { vector<int> result; - result.push_back(Current_routine.calls.top().default_space); + result.push_back(Current_routine->calls.top().default_space); return result; } |