From 6c96a437cef5140197660a0903309f11c364bf78 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 19 Oct 2016 22:10:35 -0700 Subject: 3522 --- 055shape_shifting_container.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '055shape_shifting_container.cc') 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& out, const s bool type_ingredients_match(const map& a, const map& b) { if (SIZE(a) != SIZE(b)) return false; - for (map::const_iterator p = a.begin(); p != a.end(); ++p) { + for (map::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'; -- cgit 1.4.1-2-gfad0