diff options
author | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2008-09-02 14:16:20 +0000 |
---|---|---|
committer | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2008-09-02 14:16:20 +0000 |
commit | 19aae56bb6cb1245c17851d87ac3368e03e5311c (patch) | |
tree | b2141b4781a30b4f4ca544e531cc8cde078c0f7f /lib | |
parent | 1d1e9fcd021cab1206376508516d84896f4d1570 (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.ml | 2 |
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 |