about summary refs log tree commit diff stats
path: root/073wait.cc
diff options
context:
space:
mode:
Diffstat (limited to '073wait.cc')
-rw-r--r--073wait.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/073wait.cc b/073wait.cc
index a243982b..917a7a03 100644
--- a/073wait.cc
+++ b/073wait.cc
@@ -205,9 +205,9 @@ case GET_LOCATION: {
     raise << maybe(current_recipe_name()) << "tried to access location 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
     break;
   }
-  const type_tree* base_root_type = root_type(base.type);
+  const type_tree* base_type = get_base_type(base.type);
   int offset = ingredients.at(1).at(0);
-  if (offset < 0 || offset >= SIZE(get(Type, base_root_type->value).elements)) break;  // copied from Check above
+  if (offset < 0 || offset >= SIZE(get(Type, base_type->value).elements)) break;  // copied from Check above
   int result = base_address;
   for (int i = 0;  i < offset;  ++i)
     result += size_of(element_type(base.type, i));