Fix undefined-santitizer warning in rax test (#1122)

Fix the warning introduced in #688:

```
unit/test_rax.c:168:15: runtime error: left shift of 36625 by 16 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior unit/test_rax.c:168:15 in 
Fuzz test in mode 1 [7504]: 
```

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit is contained in:
Viktor Söderqvist 2024-10-03 17:34:03 +02:00 committed by GitHub
parent 150c197bdd
commit dcac3e1499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,7 +165,7 @@ static uint32_t int2int(uint32_t input) {
r = l ^ F;
l = nl;
}
return (r << 16) | l;
return ((uint32_t)r << 16) | l;
}
/* Turn an uint32_t integer into an alphanumerical key and return its