From 19aae56bb6cb1245c17851d87ac3368e03e5311c Mon Sep 17 00:00:00 2001 From: barras Date: Tue, 2 Sep 2008 14:16:20 +0000 Subject: avoid small overflows git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11346 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/util.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.ml b/lib/util.ml index 94e812ff65..eb096c3cf3 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -1369,7 +1369,7 @@ let heap_size () = let stat = Gc.stat () and control = Gc.get () in let max_words_total = stat.Gc.heap_words + control.Gc.minor_heap_size in - (max_words_total * Sys.word_size / 8) + (max_words_total * (Sys.word_size / 8)) let heap_size_kb () = (heap_size () + 1023) / 1024 -- cgit v1.2.3