merged
authorboehmes
Mon, 14 Dec 2009 21:28:28 +0100
changeset 34090 7f7297f348fe
parent 34089 a67bebd37135 (current diff)
parent 34088 d6194ece49df (diff)
child 34091 3aea0882879f
merged
--- a/src/Pure/Tools/find_theorems.ML	Mon Dec 14 21:27:59 2009 +0100
+++ b/src/Pure/Tools/find_theorems.ML	Mon Dec 14 21:28:28 2009 +0100
@@ -409,7 +409,7 @@
 
         val len = length matches;
         val lim = the_default (! limit) opt_limit;
-      in (SOME len, drop (len - lim) matches) end;
+      in (SOME len, drop (Int.max (len - lim, 0)) matches) end;
 
     val find =
       if rem_dups orelse is_none opt_limit