internal/shaderir: make outputs for unexpected operators consistent

This commit is contained in:
Hajime Hoshi 2022-03-26 01:39:53 +09:00
parent 4893b13acc
commit cfd0de5c41
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ func opString(op shaderir.Op) string {
case shaderir.OrOr:
return "||"
}
return fmt.Sprintf("!(unexpected operator: %d)", op)
return fmt.Sprintf("?(unexpected operator: %d)", op)
}
func typeString(t *shaderir.Type) (string, string) {

View File

@ -61,7 +61,7 @@ func opString(op shaderir.Op) string {
case shaderir.OrOr:
return "||"
}
return fmt.Sprintf("!(unexpected operator: %d)", op)
return fmt.Sprintf("?(unexpected operator: %d)", op)
}
func typeString(t *shaderir.Type) (string, string) {

View File

@ -61,7 +61,7 @@ func opString(op shaderir.Op) string {
case shaderir.OrOr:
return "||"
}
return fmt.Sprintf("!(unexpected operator: %d)", op)
return fmt.Sprintf("?(unexpected operator: %d)", op)
}
func typeString(t *shaderir.Type, packed bool, ref bool) string {