]> matita.cs.unibo.it Git - helm.git/commitdiff
bugfix while printing MutInd and MutConstruct unresolved uris
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 21 Jan 2003 16:37:09 +0000 (16:37 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 21 Jan 2003 16:37:09 +0000 (16:37 +0000)
helm/ocaml/cic_proof_checking/cicPp.ml

index 30b91760dca74f278cf4a2da4804104c80ccee3e..d3f7f0f60b181f7ccdcc02de45176079e92300dc 100644 (file)
@@ -114,7 +114,7 @@ let rec pp t l =
               name ^ pp_exp_named_subst exp_named_subst l
           | _ -> raise CicPpInternalError
         with
-         _ -> UriManager.string_of_uri uri ^ "#1/" ^ string_of_int 
+         _ -> UriManager.string_of_uri uri ^ "#1/" ^ string_of_int (n + 1)
        )
     | C.MutConstruct (uri,n1,n2,exp_named_subst) ->
        (try
@@ -126,7 +126,7 @@ let rec pp t l =
           | _ -> raise CicPpInternalError
         with
          _ ->
-          UriManager.string_of_uri uri ^ "#1/" ^ string_of_int n1 ^ "/" ^
+          UriManager.string_of_uri uri ^ "#1/" ^ string_of_int (n1 + 1) ^ "/" ^
            string_of_int n2
        )
     | C.MutCase (uri,n1,ty,te,patterns) ->