Allow <, <=, >, >= comparisons of pointers
Allow explicit type-casting of pointers to and from integers
Fix bug in handling expressions of the form "int + ptr" ("ptr + int"
was fine).
Fix a bug in TypeCastExpr where varying -> uniform typecasts
would be allowed (leading to a crash later)
7 lines
157 B
Plaintext
7 lines
157 B
Plaintext
// Pointer type cast of type "int32 * uniform" to integer type "uniform int32" may lose information.
|
|
|
|
int32 foo(int * uniform x) {
|
|
return (int32) x;
|
|
}
|
|
|