diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 14:27:50 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 14:27:50 -0400 |
| commit | f0d97cd4cd15f2e58517b462d412015a2f1e7038 (patch) | |
| tree | fdb432ee695d0d234d5f9b82bb195254d0af4b73 /builtins | |
| parent | 5a0502bdf5da0b1cdb91fb1d0dfa08b4c4a4db0b (diff) | |
Make biggest int semantically meaningful
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/integers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/integers.h b/builtins/integers.h index 5566c549..385113b0 100644 --- a/builtins/integers.h +++ b/builtins/integers.h @@ -60,7 +60,7 @@ Range_t Int$to(Int_t from, Int_t to); Int_t Int$from_text(CORD text); Int_t Int$abs(Int_t x); -#define BIGGEST_SMALL_INT (536870911) +#define BIGGEST_SMALL_INT ((1<<29)-1) #define Int$from_mpz(mpz) (\ mpz_cmpabs_ui(mpz, BIGGEST_SMALL_INT) <= 0 ? ({ \ |
