Add some adler.update implementation.

This commit is contained in:
Nigel Tao committed 2017-10-19 19:32:10 +11:00
1 parent 50369c782c
commit d770bf7534
3 files changed
+62 -1

No files matched your search

+1 -1
View File
@@ -338,7 +338,7 @@ func (q *checker) bcheckAssignment(lhs *a.Expr, op t.ID, rhs *a.Expr) error {
return err
}
if lhs.Pure() && rhs.Pure() {
if lhs.Pure() && rhs.Pure() && lhs.MType().IsNumType() {
o := a.NewExpr(a.FlagsTypeChecked, t.IDXBinaryEqEq, 0, lhs.Node(), nil, rhs.Node(), nil)
o.SetMType(lhs.MType())
q.facts.appendFact(o)