mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
parent
5614e9d7eb
commit
5f97bdc1d3
@ -595,7 +595,7 @@ func (s *compileState) parseConstant(block *block, vs *ast.ValueSpec) ([]constan
|
|||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
if es[0].Type != shaderir.NumberExpr {
|
if es[0].Type != shaderir.NumberExpr {
|
||||||
s.addError(vs.Pos(), fmt.Sprintf("constant expresion must be a number but not: %s", n))
|
s.addError(vs.Pos(), fmt.Sprintf("constant expression must be a number but not: %s", n))
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
cs = append(cs, constant{
|
cs = append(cs, constant{
|
||||||
|
Loading…
Reference in New Issue
Block a user