summaryrefslogtreecommitdiffstats
path: root/byterun/gc_ctrl.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2000-08-23 17:10:03 +0000
committerDamien Doligez <damien.doligez-inria.fr>2000-08-23 17:10:03 +0000
commit3a43e16ae2c62b2ec0a8bcded8883b849d5b26bb (patch)
treebe9e24ff70fee6b2c61766371d5b80d08c8fa253 /byterun/gc_ctrl.c
parent7f2c1ed367e24f2f78b20f3e0bf840633e3e3fb3 (diff)
ajout Weak.get_copy
Assert -> CAMLassert suppression des conjonctions dans les Assert git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3279 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/gc_ctrl.c')
-rw-r--r--byterun/gc_ctrl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/byterun/gc_ctrl.c b/byterun/gc_ctrl.c
index cdd2cc32a..570d2a289 100644
--- a/byterun/gc_ctrl.c
+++ b/byterun/gc_ctrl.c
@@ -47,7 +47,8 @@ extern unsigned long percent_max; /* see compact.c */
/* Check that [v]'s header looks good. [v] must be a block in the heap. */
static void check_head (value v)
{
- Assert (Is_block (v) && Is_in_heap (v));
+ Assert (Is_block (v));
+ Assert (Is_in_heap (v));
Assert (Wosize_val (v) != 0);
Assert (Color_hd (Hd_val (v)) != Caml_blue);
@@ -83,7 +84,8 @@ static void check_block (char *hp)
/* not true when check_urgent_gc is called by alloc or alloc_string:
lastbyte = Bosize_val (v) - 1;
i = Byte (v, lastbyte);
- Assert (i >= 0 && i < sizeof (value));
+ Assert (i >= 0);
+ Assert (i < sizeof (value));
Assert (Byte (v, lastbyte - i) == 0);
*/
break;