about summary refs log tree commit diff stats
path: root/032array.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-26 21:30:43 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-26 21:30:43 -0800
commit947f06fb5569007a5a3c444683794427c72cef52 (patch)
treeee9bb69c1f6357688a7821411059df5f86ac3d75 /032array.cc
parentaed2929055ee8de978da739fbeaec7112418fc1d (diff)
downloadmu-947f06fb5569007a5a3c444683794427c72cef52.tar.gz
2717 - bugfix for dilated reagents
Make sure static arrays can take compound types.
Diffstat (limited to '032array.cc')
-rw-r--r--032array.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/032array.cc b/032array.cc
index 46681654..9d5dbda6 100644
--- a/032array.cc
+++ b/032array.cc
@@ -226,6 +226,10 @@ case INDEX: {
 
 :(code)
 type_tree* array_element(const type_tree* type) {
+  if (type->right->left) {
+    assert(!type->right->left->left);
+    return type->right->left;
+  }
   return type->right;
 }