]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/bloom-filters/bloom-filters.factor
change ERROR: words from throw-foo back to foo.
[factor.git] / extra / bloom-filters / bloom-filters.factor
index 50a680919e8c61e79e25021eb9157ba1a3aa389b..07ff68703a5a6883efc1aed1018d4bf7d9a1aab1 100644 (file)
@@ -73,7 +73,7 @@ ERROR: invalid-capacity capacity ;
 ! If the number of hashes isn't positive, we haven't found
 ! anything smaller than the identity configuration.
 : check-hashes ( 2seq -- 2seq )
-    dup first 0 <= [ throw-invalid-size ] when ;
+    dup first 0 <= [ invalid-size ] when ;
 
 ! The consensus on the tradeoff between increasing the number of
 ! bits and increasing the number of hash functions seems to be
@@ -90,11 +90,11 @@ ERROR: invalid-capacity capacity ;
     ] reduce check-hashes first2 ;
 
 : check-capacity ( capacity -- capacity )
-    dup 0 <= [ throw-invalid-capacity ] when ;
+    dup 0 <= [ invalid-capacity ] when ;
 
 : check-error-rate ( error-rate -- error-rate )
     dup [ 0 after? ] [ 1 before? ] bi and
-    [ throw-invalid-error-rate ] unless ;
+    [ invalid-error-rate ] unless ;
 
 PRIVATE>