]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "vm: set array_size_max to fixnum_max."
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Feb 2022 20:55:47 +0000 (12:55 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Feb 2022 20:55:47 +0000 (12:55 -0800)
This reverts commit df89e18996f440a61cbdb01204e3654e5642fae6.

vm/math.hpp

index 6aab50a7b215dea891f64a4ed7e5c9e928ad6d6f..c0b6f7ed326049cd5a0cc570b291cc09f7980cf1 100644 (file)
@@ -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 = fixnum_max;
+static const fixnum array_size_max = ((cell)1 << (WORD_SIZE - TAG_BITS - 2));
 
 // Allocates memory
 inline cell factor_vm::from_signed_cell(fixnum x) {