diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2010-07-20 14:29:12 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2010-07-20 14:29:12 +0000 |
commit | 2c5f7b90d969dde84e466d7babb7c5ab3a1945e4 (patch) | |
tree | 098a9049c47bc3ba5eb2d957c06b4a4b98996617 /lib | |
parent | 0fdd57f8db64b308b32e114fe5d6660f077a1664 (diff) |
Fixed a bug in list_forall2eq (wrong exception was caught).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13298 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.ml b/lib/util.ml index 2711eee24..20481adf3 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -577,7 +577,8 @@ let list_eq_set l1 l2 = | a::l2 -> aux (list_remove_first a l1) l2 in try aux l1 l2 with Not_found -> false -let list_for_all2eq f l1 l2 = try List.for_all2 f l1 l2 with Failure _ -> false +let list_for_all2eq f l1 l2 = + try List.for_all2 f l1 l2 with Invalid_argument _ -> false let list_filter_i p = let rec filter_i_rec i = function |