summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/cst2constr.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-06-18 14:59:32 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-06-18 14:59:32 +0000
commit57c7dfd8fed5efd2d66f0b990941ade7382fa012 (patch)
tree9cdd73bbbe28d26728b28ee756f7ca3bbe147abd /otherlibs/unix/cst2constr.c
parent09b2d4a5d5bc7175e6cffcada45ee063f911f1ca (diff)
MAJ apres le changement de representation des constructeurs constants
(reste a tester). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@48 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/cst2constr.c')
-rw-r--r--otherlibs/unix/cst2constr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/cst2constr.c b/otherlibs/unix/cst2constr.c
index 7a519a750..7a0bb95ad 100644
--- a/otherlibs/unix/cst2constr.c
+++ b/otherlibs/unix/cst2constr.c
@@ -10,6 +10,6 @@ value cst_to_constr(n, tbl, size, deflt)
{
int i;
for (i = 0; i < size; i++)
- if (n == tbl[i]) return Atom(i);
- return Atom(deflt);
+ if (n == tbl[i]) return Val_int(i);
+ return Val_int(deflt);
}