summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2000-03-30 17:29:29 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2000-03-30 17:29:29 +0000
commitb20fb9e8fcbca65da5de0e610f0090e4abc627ab (patch)
treebdf1d41e2b9cf7323308996ee37a5bd582d3f285
parent7feb8382c4b29192ff451acb84631361eb4a0891 (diff)
Assertions sur le tag
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3021 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/byterun/alloc.c b/byterun/alloc.c
index ebe9961d3..d0fc9d65c 100644
--- a/byterun/alloc.c
+++ b/byterun/alloc.c
@@ -34,6 +34,7 @@ value alloc (mlsize_t wosize, tag_t tag)
mlsize_t i;
Assert (wosize > 0);
+ Assert (tag < 256);
if (wosize <= Max_young_wosize){
Alloc_small (result, wosize, tag);
if (tag < No_scan_tag){
@@ -52,6 +53,7 @@ value alloc_small (mlsize_t wosize, tag_t tag)
value result;
Assert (wosize > 0 && wosize <= Max_young_wosize);
+ Assert (tag < 256);
Alloc_small (result, wosize, tag);
return result;
}