about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-29 09:03:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-29 09:03:58 -0700
commit7f902016015e4a7a82d1650e52e7d6f227fcf0ee (patch)
tree96ff39f5748c264d764d6de7048226880047885f
parent42eeea1d779dbda47e06936536b2ab7989ea4ea0 (diff)
downloadmu-7f902016015e4a7a82d1650e52e7d6f227fcf0ee.tar.gz
2885
-rw-r--r--057shape_shifting_container.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/057shape_shifting_container.cc b/057shape_shifting_container.cc
index 5427d3a1..8014b86a 100644
--- a/057shape_shifting_container.cc
+++ b/057shape_shifting_container.cc
@@ -298,8 +298,7 @@ void replace_type_ingredients(type_tree* element_type, const type_tree* callsite
       // rather than {foo: (number)}
       // We'd also like to use it with multiple types: foo:address:number.
       replacement = curr;
-      if (!final_type_ingredient(type_ingredient_index, container_info))
-        splice_right = false;
+      splice_right = final_type_ingredient(type_ingredient_index, container_info);
     }
   }
   if (element_type->right && replacement->right && zig_left) {  // ZERO confidence that this condition is accurate