]> matita.cs.unibo.it Git - helm.git/commitdiff
fixed a list.nth called on a too short list
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 17 Apr 2007 08:41:09 +0000 (08:41 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 17 Apr 2007 08:41:09 +0000 (08:41 +0000)
components/tactics/proofEngineReduction.ml

index ec69074369663cabc55ba782f17cde1a9ef78d76..016a7ba994fbe54593e68ac96647981ce0505b4e 100644 (file)
@@ -1023,7 +1023,7 @@ let simpl context =
                prerr_endline ("e piglio il rispettivo in :"^String.concat " " 
                  (List.map (fun x -> CicPp.ppterm x) original_args));
                (* look for args[regno] in saved_args *)
-               let wanted = List.nth args (guess_recno uri) in (* args@l ? *)
+               let wanted = List.nth (args@l) (guess_recno uri) in
                let rec aux n = function
                  | [] -> n (* DA CAPIRE *)
                  | t::_ when t = wanted -> n