Error if static array is cast to an array such that oldarraysize % newelemsize != 0.

This commit is contained in:
Christian Kamm
2008-07-29 12:32:01 +02:00
parent 99f1cfef36
commit caa61a5523
4 changed files with 23 additions and 15 deletions

View File

@@ -1309,7 +1309,7 @@ DValue* CmpExp::toElem(IRState* p)
else if (t->ty == Tsarray || t->ty == Tarray)
{
Logger::println("static or dynamic array");
eval = DtoArrayCompare(op,l,r);
eval = DtoArrayCompare(loc,op,l,r);
}
else
{
@@ -1382,7 +1382,7 @@ DValue* EqualExp::toElem(IRState* p)
else if (t->ty == Tsarray || t->ty == Tarray)
{
Logger::println("static or dynamic array");
eval = DtoArrayEquals(op,l,r);
eval = DtoArrayEquals(loc,op,l,r);
}
else if (t->ty == Tdelegate)
{