CLI 1.9.0 / 1.9.1: compiler segfaults on a comparison with a negative constant (AnimaScript)
negative-constant.zip
Version: rive 1.9.0 and 1.9.1 (stable), Windows 11 x64. Works on 1.8.0.
Any AnimaScript comparison against a negative constant crashes the compiler with a segmentation fault , so the whole project fails to verify, test or preview.
**Repro:** a folder with three files:
`rive.yaml`
```yaml
name: repro
main: Main
scripting: wasm
```
`main.as`
```ts
import { Layout, Context } from "rive/host";
export class Main extends Layout {
override init(context:Context):bool{let x:i32=0;return x==-1;}
}
```
`main.rml`
```xml
<Rive version="1" kind="fragment">
<ScriptAsset file="main.as" name="main" id="1:1"/>
<Artboard width="100" height="100" name="Main" id="1:3">
<ScriptedLayout scriptAssetId="1:1" name="Script" id="1:12"/>
</Artboard>
</Rive>
```
**Steps:** `rive . --verify`
**Expected:** verifies, as on 1.8.0.
**Actual:** segmentation fault, no report.
Changing `x==-1` to `x==1` verifies fine. In a larger project `x<-1` and `x==NONE` (with `const NONE=-1`) crash the same way. It might be related to the new integer typing rules for signed/unsigned comparisons in 1.9.x.
For now I'm staying on 1.8.0, since my project has many such comparisons.