about summary refs log tree commit diff stats
path: root/033exclusive_container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-20 08:54:42 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-20 08:54:42 -0800
commit343bc5359b93d4b589544671804f11d42f67d694 (patch)
tree1725c408df8841a945931beb55c8976558bea230 /033exclusive_container.cc
parent41e6effbbe61951f62ec000c676f625793044549 (diff)
downloadmu-343bc5359b93d4b589544671804f11d42f67d694.tar.gz
2677
Include type names in the type tree. Though we aren't using them yet.
Diffstat (limited to '033exclusive_container.cc')
-rw-r--r--033exclusive_container.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/033exclusive_container.cc b/033exclusive_container.cc
index fd47728b..26def074 100644
--- a/033exclusive_container.cc
+++ b/033exclusive_container.cc
@@ -104,7 +104,7 @@ case MAYBE_CONVERT: {
     break;
   }
   reagent variant = variant_type(base, offset.value);
-  variant.type = new type_tree(get(Type_ordinal, "address"), variant.type);
+  variant.type = new type_tree("address", get(Type_ordinal, "address"), variant.type);
   if (!types_coercible(product, variant)) {
     raise_error << maybe(caller.name) << "'maybe-convert " << base.original_string << ", " << inst.ingredients.at(1).original_string << "' should write to " << to_string(variant.type) << " but " << product.name << " has type " << to_string(product.type) << '\n' << end();
     break;