]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed in pretty-printing of free Rels.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 13 May 2008 17:27:08 +0000 (17:27 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 13 May 2008 17:27:08 +0000 (17:27 +0000)
helm/software/components/ng_kernel/nCicPp.ml

index a38ecde4c32051d8d2677b3010ce39ece9ca49af..991b26ffc2800c81b8217fb502b4537231989498 100644 (file)
@@ -52,7 +52,7 @@ let trivial_pp_term ~context ~subst ~metasenv ?(inside_fix=false) t =
          (try 
             let name = List.nth ctx (m-1) in
             F.fprintf f "%s" (if name = "_" then "__"^string_of_int m else name)
-         with Failure _ -> F.fprintf f " -%d" (m - List.length context))
+         with Failure _ -> F.fprintf f " -%d" (m - List.length ctx))
    | C.Const r -> F.fprintf f "%s" (r2s inside_fix r)
    | C.Prod ("_",s,t) -> 
        if not toplevel then F.fprintf f "(";