Fix #198: integer out of range

This commit is contained in:
Joey Yakimowich-Payne 2020-05-01 07:20:45 -06:00
commit 34043bd5af
3 changed files with 34 additions and 15 deletions

View file

@ -33,6 +33,9 @@ extern "C" {
#define EQ5 AVAL != BVAL
#define EQ6 AVAL == BVAL
// testing integer out of long int range
#define INT_FAST16_MIN (-9223372036854775807L-1)
#define SIZEOF sizeof(char)
#define REG_STR "regular string"
#define NOTSUPPORTEDSTR "not a " REG_STR

View file

@ -131,6 +131,8 @@ assert SIZEOF == 1
assert COERCE == 645635670332'u64
assert COERCE2 == 645635670332'i64
assert INT_FAST16_MIN == -9223372036854775807'i64 - 1
assert BINEXPR == 5
assert BOOL == true
assert MATHEXPR == -99