diff options
Diffstat (limited to 'cpp/033length')
-rw-r--r-- | cpp/033length | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/033length b/cpp/033length index 01199ce6..5281287d 100644 --- a/cpp/033length +++ b/cpp/033length @@ -17,7 +17,7 @@ LENGTH, Recipe_number["length"] = LENGTH; :(before "End Primitive Recipe Implementations") case LENGTH: { - reagent x = canonize(instructions[pc].ingredients[0]); + reagent x = canonize(current_instruction().ingredients[0]); if (x.types[0] != Type_number["array"]) { raise << "tried to calculate length of non-array " << x.to_string() << '\n'; break; @@ -25,6 +25,6 @@ case LENGTH: { vector<int> result; //? cout << "length: " << x.value << '\n'; //? 1 result.push_back(Memory[x.value]); - write_memory(instructions[pc].products[0], result); + write_memory(current_instruction().products[0], result); break; } |