aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorletouzey2005-08-19 21:32:46 +0000
committerletouzey2005-08-19 21:32:46 +0000
commite31434db0bd91d4c6b3fec8ad09b74c3613630a0 (patch)
tree239f85961ff86c93e7135580124a319bf0850fe5 /lib
parentbe6ee173206a929ad664ff507334ad5add7ad157 (diff)
pas besoin de List.length pour savoir si une liste est vide
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7306 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r--lib/profile.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profile.ml b/lib/profile.ml
index cce4ecd318..1197c92a91 100644
--- a/lib/profile.ml
+++ b/lib/profile.ml
@@ -328,7 +328,7 @@ let close_profile print =
outside.owntime <- outside.owntime + t;
ajoute_ownalloc outside dw;
ajoute_totalloc outside dw;
- if List.length !prof_table <> 0 then begin
+ if !prof_table <> [] then begin
let ov_bc = time_overhead_B_C () (* B+C overhead *) in
let ov_ad = time_overhead_A_D () (* A+D overhead *) in
let adjust (n,e) = (n, adjust_time ov_bc ov_ad e) in