aboutsummaryrefslogtreecommitdiff
path: root/builtins/integers.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-13 14:13:02 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-13 14:13:02 -0400
commit5a0502bdf5da0b1cdb91fb1d0dfa08b4c4a4db0b (patch)
treed461fec6453e8e99cefabd712ee27091528731ea /builtins/integers.h
parent148782e61ba4efbf2981e7d9e18279e92054e149 (diff)
Fix some edge cases
Diffstat (limited to 'builtins/integers.h')
-rw-r--r--builtins/integers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/integers.h b/builtins/integers.h
index f9051ff5..5566c549 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 ((1<<30)-1)
+#define BIGGEST_SMALL_INT (536870911)
#define Int$from_mpz(mpz) (\
mpz_cmpabs_ui(mpz, BIGGEST_SMALL_INT) <= 0 ? ({ \