aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2004-07-19 13:33:48 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2004-07-19 13:33:48 +0000
commit00678383733c61ff96596cdc1e3d5527ad51a5a9 (patch)
tree5093271fd9f1054d147ed38e500e00f0f5abbe02 /contrib
parent35ad1640ca69dbc257787c4eae6602582e54454c (diff)
Protection des accès tableau car, sur Sparc-linux, cela engendre une erreur fatale d'ocaml
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5958 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fourier/fourierR.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/fourier/fourierR.ml b/contrib/fourier/fourierR.ml
index d00f1a5c6..695388130 100644
--- a/contrib/fourier/fourierR.ml
+++ b/contrib/fourier/fourierR.ml
@@ -186,10 +186,10 @@ type hineq={hname:constr; (* le nom de l'hypothèse *)
let ineq1_of_constr (h,t) =
match (kind_of_term t) with
App (f,args) ->
- let t1= args.(0) in
- let t2= args.(1) in
(match kind_of_term f with
- Const c ->
+ Const c when Array.length args = 2 ->
+ let t1= args.(0) in
+ let t2= args.(1) in
(match (string_of_R_constant c) with
"Rlt" -> [{hname=h;
htype="Rlt";