Mercurial > projects > ddmd
comparison dmd/DivExp.d @ 109:ceda59b4d255
expression.c changes, now only ddoc should be left
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 22:08:52 +0200 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
108:6da99741178e | 109:ceda59b4d255 |
---|---|
39 e = op_overload(sc); | 39 e = op_overload(sc); |
40 if (e) | 40 if (e) |
41 return e; | 41 return e; |
42 | 42 |
43 typeCombine(sc); | 43 typeCombine(sc); |
44 if (e1.op != TOK.TOKslice && e2.op != TOK.TOKslice) | 44 if (!e1.isArrayOperand()) |
45 { | |
46 e1.checkArithmetic(); | 45 e1.checkArithmetic(); |
46 if (!e2.isArrayOperand()) | |
47 e2.checkArithmetic(); | 47 e2.checkArithmetic(); |
48 } | 48 |
49 if (type.isfloating()) | 49 if (type.isfloating()) |
50 { | 50 { |
51 Type t1 = e1.type; | 51 Type t1 = e1.type; |
52 Type t2 = e2.type; | 52 Type t2 = e2.type; |
53 | 53 |