From c4b189a6732274861fa93587019af6d5206f9a79 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 9 Apr 2008 15:59:57 +0000 Subject: [PATCH] Bug fixed: references to CoFix are CoFix, not Fix. --- helm/software/components/ng_kernel/nCicEnvironment.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/software/components/ng_kernel/nCicEnvironment.ml b/helm/software/components/ng_kernel/nCicEnvironment.ml index 599e1691f..52c3ebca7 100644 --- a/helm/software/components/ng_kernel/nCicEnvironment.ml +++ b/helm/software/components/ng_kernel/nCicEnvironment.ml @@ -58,13 +58,13 @@ let get_checked_indtys = function ;; let get_checked_fix_or_cofix b = function - | NReference.Ref (_, uri, NReference.Fix (fixno,_)) -> + | NReference.Ref (_, uri, (NReference.Fix (fixno,_)|NReference.CoFix fixno))-> (match get_checked_obj uri with | _,height,_,_, NCic.Fixpoint (is_fix,funcs,att) when is_fix = b -> let rlv, name, _, ty, bo = List.nth funcs fixno in rlv, name, bo, ty, att, height | _ ->prerr_endline "get_checked_(co)fix on a non (co)fix 2";assert false) - | _ -> prerr_endline "get_checked_(co)fix on a non (co)fix"; assert false + | r -> prerr_endline ("get_checked_(co)fix on " ^ NReference.string_of_reference r); assert false ;; let get_checked_fix r = get_checked_fix_or_cofix true r;; let get_checked_cofix r = get_checked_fix_or_cofix false r;; -- 2.39.2