mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
shader: Bug fix: A wrong usage of a pointer
This commit is contained in:
parent
de14a44c01
commit
d3fbf377ef
@ -427,7 +427,7 @@ func (cs *compileState) parseStmt(block *block, fname string, stmt ast.Stmt, inP
|
||||
}
|
||||
|
||||
if !t.Equal(&outParams[i+j].typ) {
|
||||
cs.addError(stmt.Pos(), fmt.Sprintf("cannot use type %s as type %s in return argument", &t, &outParams[i].typ))
|
||||
cs.addError(stmt.Pos(), fmt.Sprintf("cannot use type %s as type %s in return argument", t.String(), &outParams[i].typ))
|
||||
return nil, false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user