mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Place some vars at the top of functions
This commit is contained in:
1 parent
87b8b44778
commit
bac74a830d
6 files changed
+15
-11
No files matched your search
+1
-1
@@ -313,7 +313,7 @@ func (q *checker) tcheckAssign(n *a.Assign) error {
|
||||
lTyp := lhs.MType()
|
||||
rTyp := rhs.MType()
|
||||
|
||||
if n.Operator() == t.IDEq {
|
||||
if op := n.Operator(); op == t.IDEq || op == t.IDEqQuestion {
|
||||
return q.tcheckEq(0, lhs, lTyp, rhs, rTyp)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user