21a59d650d
Previously, the code which calculated Constructor constant values assumed that a constant-value PrefixExpression would always have an operand of Constructor. It turns out that another valid case is multiple PrefixExpressions nested within each other (representing repeated negation). Updated the code to work regardless of the type of the prefix operand. Change-Id: Ic9bf54725ae59330ac817bc4ec7a64def384ab54 Bug: oss-fuzz:27663 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/337177 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
6 lines
126 B
GLSL
6 lines
126 B
GLSL
### Compilation failed:
|
|
|
|
error: 1: division by zero
|
|
error: 1: type mismatch: '=' cannot operate on 'half4', 'float4'
|
|
2 errors
|