diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-11-03 01:50:46 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-11-03 01:50:46 -0700 |
commit | a89c1bed26fd05fc25034e43901c7f03351721a2 (patch) | |
tree | 1f269a69ecc25d84c2fd99070a9be79c491b0c9f /032array.cc | |
parent | a3195d440d2f0e99400db78e5a4386691c94a9a0 (diff) | |
download | mu-a89c1bed26fd05fc25034e43901c7f03351721a2.tar.gz |
4104
Stop hardcoding Max_depth everywhere; we had a default value for a reason but then we forgot all about it.
Diffstat (limited to '032array.cc')
-rw-r--r-- | 032array.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/032array.cc b/032array.cc index a22e4588..bc933aad 100644 --- a/032array.cc +++ b/032array.cc @@ -57,7 +57,7 @@ case CREATE_ARRAY: { array_length_from_type = array_length_from_type->left; int array_length = to_integer(array_length_from_type->name); // initialize array length, so that size_of will work - trace(9999, "mem") << "storing " << array_length << " in location " << base_address << end(); + trace("mem") << "storing " << array_length << " in location " << base_address << end(); put(Memory, base_address, array_length); // in array elements int size = size_of(product); // in locations trace(9998, "run") << "creating array of size " << size << end(); @@ -561,7 +561,7 @@ case PUT_INDEX: { vector<double> value = read_memory(current_instruction().ingredients.at(2)); // Write Memory in PUT_INDEX in Run for (int i = 0; i < SIZE(value); ++i) { - trace(9999, "mem") << "storing " << no_scientific(value.at(i)) << " in location " << address+i << end(); + trace("mem") << "storing " << no_scientific(value.at(i)) << " in location " << address+i << end(); put(Memory, address+i, value.at(i)); } break; |