diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-07 09:49:45 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-07 09:49:45 +0000 |
commit | a82c3665042b80a0febcbffdf0577cd37de349ff (patch) | |
tree | 25ddb7621d275881c1cfa38e6ce0a2b1462270b8 /byterun/compare.c | |
parent | 143761a5142bf30a3321ec7b66bf2f4b2620ac30 (diff) |
Portage Mingw et revision du portage Win32/MSVC
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4899 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/compare.c')
-rw-r--r-- | byterun/compare.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/byterun/compare.c b/byterun/compare.c index 720940fbc..fa4b092df 100644 --- a/byterun/compare.c +++ b/byterun/compare.c @@ -163,7 +163,10 @@ static long compare_val(value v1, value v2) break; } case Custom_tag: { - int res = Custom_ops_val(v1)->compare(v1, v2); + int res; + int (*compare)(value v1, value v2) = Custom_ops_val(v1)->compare; + if (compare == NULL) failwith("equal: abstract value"); + res = Custom_ops_val(v1)->compare(v1, v2); if (res != 0) return res; break; } |