X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_interpreter%2Fsub.ml;h=e59bf049d1e25fd6c05e63495f8dac59fd2b1dcb;hb=14c77c97790562bd07405a290e3517c2532b7d12;hp=5bc3d5b92b18aebdc8ae0cd356a675fffcca83e4;hpb=55ec3b1290f0de467c51d163fef22fd68bb0823e;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/sub.ml b/helm/ocaml/mathql_interpreter/sub.ml index 5bc3d5b92..e59bf049d 100644 --- a/helm/ocaml/mathql_interpreter/sub.ml +++ b/helm/ocaml/mathql_interpreter/sub.ml @@ -28,7 +28,7 @@ let rec sub_ex v1 v2 = match v1,v2 with [],_ -> true | _,[] -> false - | s1::tl1, s2::_ when s1 < s2 -> sub_ex tl1 v2 - | s1::_, s2::_ when s2 < s1 -> false + | s1::_, s2::_ when s1 < s2 -> false + | s1::_, s2::tl2 when s2 < s1 -> sub_ex v1 tl2 | s1::tl1, s2::tl2 -> sub_ex tl1 tl2 ;;