mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-22 06:33:14 +01:00
Implemented mod operator for complex numbers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user