about summary refs log tree commit diff stats
path: root/047global.cc
diff options
context:
space:
mode:
Diffstat (limited to '047global.cc')
-rw-r--r--047global.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/047global.cc b/047global.cc
index b080b90d..c0e09ce4 100644
--- a/047global.cc
+++ b/047global.cc
@@ -33,11 +33,11 @@ global_space = 0;
   if (x.name == "global-space") {
     if (!scalar(data)
         || !x.type
-        || x.type->value != Type_ordinal["address"]
+        || x.type->value != get(Type_ordinal, "address")
         || !x.type->right
-        || x.type->right->value != Type_ordinal["array"]
+        || x.type->right->value != get(Type_ordinal, "array")
         || !x.type->right->right
-        || x.type->right->right->value != Type_ordinal["location"]
+        || x.type->right->right->value != get(Type_ordinal, "location")
         || x.type->right->right->right) {
       raise_error << maybe(current_recipe_name()) << "'global-space' should be of type address:array:location, but tried to write " << to_string(data) << '\n' << end();
     }