]> gitweb.factorcode.org Git - factor.git/commitdiff
Make both-fixnums? foldable, hashcode* flushable
authortimor <timor.dd@googlemail.com>
Sat, 3 Apr 2021 13:33:37 +0000 (15:33 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 4 May 2021 17:07:25 +0000 (10:07 -0700)
basis/bootstrap/image/primitives/primitives.factor
core/kernel/kernel.factor

index f2bffd9b88351978ca729e0fdf2bdc74e03d73b6..bdb095375839792c72d690ba4ae5c4c064cf6537 100644 (file)
@@ -407,7 +407,10 @@ CONSTANT: all-primitives {
     {
         "math.private"
         {
-            { "both-fixnums?" ( x y -- ? ) f { object object } { object } f }
+            {
+                "both-fixnums?" ( x y -- ? ) f
+                { object object } { object } make-foldable
+            }
             {
                 "fixnum+fast" ( x y -- z ) f
                 { fixnum fixnum } { fixnum } make-foldable
index 6138cb517e4ea15a2e4bf715ca075b128d211b94..01096c35447a765353bc436fa4a27ec5443f003b 100644 (file)
@@ -292,7 +292,7 @@ UNION: boolean POSTPONE: t POSTPONE: f ;
     [ [ not ] compose ] dip while ; inline
 
 ! Object protocol
-GENERIC: hashcode* ( depth obj -- code )
+GENERIC: hashcode* ( depth obj -- code ) flushable
 
 M: object hashcode* 2drop 0 ; inline