X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fearly-array.lisp;h=f11ec87fb4649979ed26e97a2ced8180bd694c24;hb=b14a61c6af3e3005c94e633e727177346240066e;hp=808cfef383d2e35fdb294bc4a108a7c95284d529;hpb=cea4896b2482b7b2b429c1631d774b4cfbc0efba;p=sbcl.git diff --git a/src/code/early-array.lisp b/src/code/early-array.lisp index 808cfef..f11ec87 100644 --- a/src/code/early-array.lisp +++ b/src/code/early-array.lisp @@ -9,14 +9,15 @@ (in-package "SB!IMPL") -(defconstant sb!xc:array-rank-limit 65529 +(def!constant sb!xc:array-rank-limit 65529 #!+sb-doc "the exclusive upper bound on the rank of an array") -(defconstant sb!xc:array-dimension-limit sb!vm:*target-most-positive-fixnum* +;;; - 2 to leave space for the array header +(def!constant sb!xc:array-dimension-limit (- sb!xc:most-positive-fixnum 2) #!+sb-doc "the exclusive upper bound on any given dimension of an array") -(defconstant sb!xc:array-total-size-limit sb!vm:*target-most-positive-fixnum* +(def!constant sb!xc:array-total-size-limit (- sb!xc:most-positive-fixnum 2) #!+sb-doc "the exclusive upper bound on the total number of elements in an array")