google / cel-spec

Common Expression Language -- specification and binary representation
https://cel.dev
Apache License 2.0
2.78k stars 222 forks source link

Fix math_ext conformance tests to be correct #366

Closed jcking closed 1 month ago

jcking commented 1 month ago

Various math_ext conformance tests regarding bitwise right shift of negative numbers were incorrect. Per the spec, right shifting negative numbers does not perform sign extension. Instead we treat int >> int the same as uint >> int.