aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-09-02 14:16:20 +0000
committerGravatar barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-09-02 14:16:20 +0000
commit19aae56bb6cb1245c17851d87ac3368e03e5311c (patch)
treeb2141b4781a30b4f4ca544e531cc8cde078c0f7f /lib
parent1d1e9fcd021cab1206376508516d84896f4d1570 (diff)
avoid small overflows
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11346 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r--lib/util.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.ml b/lib/util.ml
index 94e812ff6..eb096c3cf 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