about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-28 00:00:44 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-28 00:00:44 -0700
commit9f73b16511406dd8281b615b138d8648e854ca52 (patch)
tree5b88adedb893f999442311cf9b44014d5dbf933a /030container.cc
parentd3902ff0be0de6ea0cf523a42605b80715e33f38 (diff)
downloadmu-9f73b16511406dd8281b615b138d8648e854ca52.tar.gz
2817
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/030container.cc b/030container.cc
index ecb1f900..b4627355 100644
--- a/030container.cc
+++ b/030container.cc
@@ -180,10 +180,8 @@ case GET: {
   int offset = ingredients.at(1).at(0);
   if (offset < 0 || offset >= SIZE(get(Type, base_type).elements)) break;  // copied from Check above
   int src = base_address;
-  for (int i = 0; i < offset; ++i) {
-    // End GET field Cases
+  for (int i = 0; i < offset; ++i)
     src += size_of(element_type(base, i));
-  }
   trace(9998, "run") << "address to copy is " << src << end();
   reagent tmp = element_type(base, offset);
   tmp.set_value(src);
@@ -321,10 +319,8 @@ case GET_ADDRESS: {
   int offset = ingredients.at(1).at(0);
   if (offset < 0 || offset >= SIZE(get(Type, base_type).elements)) break;  // copied from Check above
   int result = base_address;
-  for (int i = 0; i < offset; ++i) {
-    // End GET_ADDRESS field Cases
+  for (int i = 0; i < offset; ++i)
     result += size_of(element_type(base, i));
-  }
   trace(9998, "run") << "address to copy is " << result << end();
   products.resize(1);
   products.at(0).push_back(result);