[interp] relop result is always int (mono/mono#18114)
authorBernhard Urban-Forster <lewurm@gmail.com>
Tue, 10 Dec 2019 21:06:48 +0000 (22:06 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Dec 2019 21:06:48 +0000 (22:06 +0100)
commitdad4f5f3c2415064e86876519c8293424b5cdd50
treedc8cafe6a3db5cb02e7ddfada0a5342477f750b7
parentd2f8efe99fd0050e3104aac1b0697b823055741d
[interp] relop result is always int (mono/mono#18114)

This can lead to problems on big endian.

```
result.i = (int) 1;
--> 0x0000_0001_XXXX_XXXX;

result.l = (long) 1;
--> 0x0000_0000_0000_0001;
```

On little endian it's always `0x0000_0000_0000_0001`, so it doesn't matter.

Commit migrated from https://github.com/mono/mono/commit/a65b7af6d5abf00d7be1f0e85c219657686e33c3
src/mono/mono/mini/interp/transform.c