From df89e18996f440a61cbdb01204e3654e5642fae6 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 15 Feb 2022 11:40:27 -0800 Subject: [PATCH] vm: set array_size_max to fixnum_max. --- vm/math.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/math.hpp b/vm/math.hpp index c0b6f7ed32..6aab50a7b2 100644 --- a/vm/math.hpp +++ b/vm/math.hpp @@ -3,7 +3,7 @@ namespace factor { static const fixnum fixnum_max = (((fixnum)1 << (WORD_SIZE - TAG_BITS - 1)) - 1); static const fixnum fixnum_min = (-((fixnum)1 << (WORD_SIZE - TAG_BITS - 1))); -static const fixnum array_size_max = ((cell)1 << (WORD_SIZE - TAG_BITS - 2)); +static const fixnum array_size_max = fixnum_max; // Allocates memory inline cell factor_vm::from_signed_cell(fixnum x) { -- 2.34.1