AST: Fix shift conversions, which don't require matching types.
The base and shift amount need to be integers, but not of the same type. This fixes #1296 and replaces #1297.
This commit is contained in:
parent
6e899be5ec
commit
647fccaf2f
9 changed files with 1475 additions and 1413 deletions
|
|
@ -116,6 +116,8 @@ void operators()
|
|||
i64 = i64 % i;
|
||||
|
||||
// Shift
|
||||
u64v = u64v << i;
|
||||
i64 = i64 >> uv.y;
|
||||
u64v <<= i;
|
||||
i64 >>= uv.y;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue