Fix #233: make shl/shr use the direct left operand for type casting

This commit is contained in:
Joey Yakimowich-Payne 2020-06-29 20:39:34 -06:00
commit 4f6cec613f
3 changed files with 16 additions and 3 deletions

View file

@ -35,6 +35,7 @@ extern "C" {
#define EQ4 AVAL < BVAL
#define EQ5 AVAL != BVAL
#define EQ6 AVAL == BVAL
#define SX_NEAR_ZERO (1.0f / (1 << 28))
// testing integer out of long int range
#define INT_FAST16_MIN (-9223372036854775807L-1)

View file

@ -134,6 +134,8 @@ assert EQ4 == (AVAL < BVAL)
assert EQ5 == (AVAL != BVAL)
assert EQ6 == (AVAL == BVAL)
assert SX_NEAR_ZERO == 3.725290298461914e-09
assert SIZEOF == 1
assert COERCE == 645635670332'u64