Skip to content

Commit

Permalink
Fix a div-by-zero error
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaniels committed Jul 5, 2012
1 parent c687e7a commit 2b75dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SearchStrategy.hs
Expand Up @@ -25,7 +25,7 @@ import Debug.Trace (trace)
-- | @isTick N t k@ is a clock that ticks @t@ times as
-- @k@ ranges over the interval [1..N]. It's used for
-- emitting diagnostic output at regular intervals of a search
isTick denom numIntervals num =
isTick denom numIntervals num = denom > 0 &&
num * numIntervals `div` denom > (num - 1) * numIntervals `div` denom

tickProp (Positive n') (Positive t) =
Expand Down
5 changes: 5 additions & 0 deletions testing/sandwich.fasta
@@ -0,0 +1,5 @@
> d2sbaa_ b.29.1.1 (A:) Legume lectin {Soybean (Glycine max) [TaxId: 3847]}
AETVSFSWNKFVPKQPNMILQGDAIVTSSGKLQLNKVDENGTPKPSSLGRALYSTPIHIW
DKETGSVASFAASFNFTFYAPDTKRLADGLAFFLAPIDTKPQTHAGYLGLFNENESGDQV
VAVEFDTFRNSWDPPNPHIGINVNSIRSIKTTSWDLANNKVAKVLITYDASTSLLVASLV
YPSQRTSNILSDVVDLKTSLPEWVRIGFSAATGLDIPGESHDVLSWSFASNLPHA

0 comments on commit 2b75dc3

Please sign in to comment.