diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-26 21:30:43 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-26 21:30:43 -0800 |
commit | 947f06fb5569007a5a3c444683794427c72cef52 (patch) | |
tree | ee9bb69c1f6357688a7821411059df5f86ac3d75 /032array.cc | |
parent | aed2929055ee8de978da739fbeaec7112418fc1d (diff) | |
download | mu-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.cc | 4 |
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; } |