Implemented mod operator for complex numbers

This commit is contained in:
Alexey Prokhin
2010-12-15 20:30:38 +03:00
parent 7cf80b3541
commit c47bfbcc32
3 changed files with 27 additions and 0 deletions

View File

@@ -767,6 +767,10 @@ DValue* ModExp::toElem(IRState* p)
errorOnIllegalArrayOp(this, e1, e2);
if (type->iscomplex()) {
return DtoComplexRem(loc, type, l, r);
}
return DtoBinRem(type, l, r);
}