changeset 360:9c9544fd769d trunk

[svn r381] Allow concatenating with static arrays.
author ChristianK
date Mon, 14 Jul 2008 17:26:58 +0200
parents 926f65e39246
children 932229a851a4
files gen/arrays.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gen/arrays.cpp	Mon Jul 14 17:22:43 2008 +0200
+++ b/gen/arrays.cpp	Mon Jul 14 17:26:58 2008 +0200
@@ -573,8 +573,8 @@
     Type* t1 = DtoDType(exp1->type);
     Type* t2 = DtoDType(exp2->type);
 
-    assert(t1->ty == Tarray);
-    assert(t1->ty == t2->ty);
+    assert(t1->ty == Tarray || t1->ty == Tsarray);
+    assert(t2->ty == Tarray || t2->ty == Tsarray);
 
     DValue* e1 = exp1->toElem(gIR);
     DValue* e2 = exp2->toElem(gIR);