about summary refs log tree commit diff stats
path: root/043new.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-08 23:36:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-08 23:48:52 -0800
commit0c0bc3aebb9f20113fc6b15180f94ed0073e96cc (patch)
treec54249a991ef2ed86903d567e6df86a7a410457d /043new.cc
parentd379d683577e66ea927c212f579f7f45853623f3 (diff)
downloadmu-0c0bc3aebb9f20113fc6b15180f94ed0073e96cc.tar.gz
2406
One new issue: the traces for all tests are perturbed by the .mu files we
choose to load.
Diffstat (limited to '043new.cc')
-rw-r--r--043new.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/043new.cc b/043new.cc
index c442f58a..dd0fac14 100644
--- a/043new.cc
+++ b/043new.cc
@@ -98,12 +98,11 @@ case ALLOCATE: {
   products.resize(1);
   products.at(0).push_back(result);
   // initialize allocated space
-  for (long long int address = result; address < result+size; ++address) {
+  for (long long int address = result; address < result+size; ++address)
     put(Memory, address, 0);
-  }
-  if (SIZE(current_instruction().ingredients) > 1) {
-    put(Memory, result, ingredients.at(1).at(0));  // array length
-  }
+  // initialize array length
+  if (SIZE(current_instruction().ingredients) > 1)
+    put(Memory, result, ingredients.at(1).at(0));
   // bump
   Current_routine->alloc += size;
   // no support for reclaiming memory