From 171c3d50d1538b5288bd3fd17c4f6d7247b35d2e Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sun, 13 Feb 2022 15:04:51 -0800 Subject: [PATCH] growable: use integer>fixnum-strict --- core/growable/growable.factor | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/growable/growable.factor b/core/growable/growable.factor index 919e5ef307..e6daa965a4 100644 --- a/core/growable/growable.factor +++ b/core/growable/growable.factor @@ -16,11 +16,11 @@ M: growable set-nth-unsafe underlying>> set-nth-unsafe ; inline fixnum ] keep + [ length integer>fixnum-strict ] keep [ set-nth-unsafe ] [ [ 1 fixnum+fast ] dip length<< ] 2bi ; inline : push-all-unsafe ( from to src dst -- ) - [ over - swap ] 2dip pickd [ length integer>fixnum ] keep + [ over - swap ] 2dip pickd [ length integer>fixnum-strict ] keep [ [ fixnum+fast ] dip length<< ] 2keep (copy) drop ; inline PRIVATE> @@ -52,10 +52,10 @@ M: growable set-length bounds-check-head 2dup length >= [ 2dup capacity >= [ over new-size over expand ] when - [ integer>fixnum ] dip + [ integer>fixnum-strict ] dip over 1 fixnum+fast >>length ] [ - [ integer>fixnum ] dip + [ integer>fixnum-strict ] dip ] if ; inline M: growable set-nth ensure set-nth-unsafe ; inline -- 2.34.1