about summary refs log tree commit diff stats
path: root/055shape_shifting_container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-19 22:10:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-19 22:10:35 -0700
commit6c96a437cef5140197660a0903309f11c364bf78 (patch)
treeea3b5a4d90100329eeb58a76773a500a6bee71da /055shape_shifting_container.cc
parent5a820205054a9c45a9b4dc71aa1f26b4612ec76d (diff)
downloadmu-6c96a437cef5140197660a0903309f11c364bf78.tar.gz
3522
Diffstat (limited to '055shape_shifting_container.cc')
-rw-r--r--055shape_shifting_container.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/055shape_shifting_container.cc b/055shape_shifting_container.cc
index f0a3924f..33746c46 100644
--- a/055shape_shifting_container.cc
+++ b/055shape_shifting_container.cc
@@ -177,7 +177,7 @@ bool slurp_type_ingredients(istream& in, map<string, type_ordinal>& out, const s
 
 bool type_ingredients_match(const map<string, type_ordinal>& a, const map<string, type_ordinal>& b) {
   if (SIZE(a) != SIZE(b)) return false;
-  for (map<string, type_ordinal>::const_iterator p = a.begin(); p != a.end(); ++p) {
+  for (map<string, type_ordinal>::const_iterator p = a.begin();  p != a.end();  ++p) {
     if (!contains_key(b, p->first)) return false;
     if (p->second != get(b, p->first)) return false;
   }
@@ -341,7 +341,7 @@ void replace_type_ingredients(type_tree* element_type, const type_tree* callsite
 const type_tree* nth_type_ingredient(const type_tree* callsite_type, int type_ingredient_index, const type_info& container_info) {
   bool final = final_type_ingredient(type_ingredient_index, container_info);
   const type_tree* curr = callsite_type;
-  for (int i = 0; i < type_ingredient_index; ++i) {
+  for (int i = 0;  i < type_ingredient_index;  ++i) {
     assert(curr);
     assert(!curr->atom);
 //?     cerr << "type ingredient " << i << " is " << to_string(curr->left) << '\n';