diff options
author | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-12-26 10:07:19 +0100 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2015-12-31 17:01:51 +0100 |
commit | 1a157442dff4bfa127af467c49280e79889acde7 (patch) | |
tree | 7d10a0093e75b652c7cce79920c054d4c2f41c91 /pretyping/typeclasses.ml | |
parent | 1a8a8db7a9e4eb5ab56cd192411529661a4972c7 (diff) |
Do not compose List.length with List.filter.
Diffstat (limited to 'pretyping/typeclasses.ml')
-rw-r--r-- | pretyping/typeclasses.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/typeclasses.ml b/pretyping/typeclasses.ml index deb03f516..c44fbc0ba 100644 --- a/pretyping/typeclasses.ml +++ b/pretyping/typeclasses.ml @@ -436,7 +436,7 @@ let instance_constructor (cl,u) args = | None -> true | Some _ -> false in - let lenpars = List.length (List.filter filter (snd cl.cl_context)) in + let lenpars = List.count filter (snd cl.cl_context) in let pars = fst (List.chop lenpars args) in match cl.cl_impl with | IndRef ind -> |