about summary refs log tree commit diff stats
path: root/mu.arc
diff options
context:
space:
mode:
Diffstat (limited to 'mu.arc')
-rw-r--r--mu.arc9
1 files changed, 5 insertions, 4 deletions
diff --git a/mu.arc b/mu.arc
index df6aff2a..723925c6 100644
--- a/mu.arc
+++ b/mu.arc
@@ -150,10 +150,11 @@
 
 (def addr (loc)
   (ret result v.loc
-    (whenlet base rep.routine*!default-scope
-      (if (< result memory*.base)
-         (++ result base)
-         (die "addr: no room for var @result")))
+    (unless (pos 'global metadata.loc)
+      (whenlet base rep.routine*!default-scope
+        (if (< result memory*.base)
+           (++ result base)
+           (die "addr: no room for var @result"))))
     (when (pos 'deref metadata.loc)
       (zap memory* result))))