]> gitweb.factorcode.org Git - factor.git/commitdiff
checksums.multi: make multi-checksum an instance of checksum
authorAlexander Iljin <ajsoft@yandex.ru>
Wed, 29 Jul 2020 15:08:36 +0000 (17:08 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 29 Jul 2020 17:42:02 +0000 (17:42 +0000)
Previously it was declared to be an instance of block-checksum, which is
not necessarily the case, since the participating checksums don't have to
be block-checksums.

extra/checksums/multi/multi.factor

index 6a89098db9f752e17376d14e317d2cb3ac0e1780..bf8876510f34e327e93906bec7dde4aca5bc25e1 100644 (file)
@@ -25,4 +25,4 @@ M: multi-state get-checksum
         dup states>> [ get-checksum ] map [ >>results ] keep
     ] unless* nip ;
 
-INSTANCE: multi-checksum block-checksum
+INSTANCE: multi-checksum checksum