aboutsummaryrefslogtreecommitdiff
path: root/interp/constrextern.ml
diff options
context:
space:
mode:
authorherbelin2004-12-24 11:25:18 +0000
committerherbelin2004-12-24 11:25:18 +0000
commit355671c60fa075b64f64e175bada909a4ce759ac (patch)
treee2ade8e51a0e377dac068c43d469951274513f89 /interp/constrextern.ml
parent13517a671562062b32fbe90106098854faa46525 (diff)
Passage d'une bibliothèque de grands entiers naturels vers une bibliothèques de grands entiers relatifs munis des 4 opérations de base
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6499 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp/constrextern.ml')
-rw-r--r--interp/constrextern.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index 0467c3d7da..d77faf6bfc 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -1199,7 +1199,7 @@ let make_notation loc ntn l =
then expand_curly_brackets (fun n l -> CNotation (loc,n,l)) ntn l
else match ntn,l with
(* Special case to avoid writing "- 3" for e.g. (Zopp 3) *)
- | "- _", [CNumeral(_,Bignat.POS p)] ->
+ | "- _", [CNumeral(_,p)] when Bigint.is_strictly_pos p ->
CNotation (loc,ntn,[CNotation(loc,"( _ )",l)])
| _ -> CNotation (loc,ntn,l)
@@ -1208,7 +1208,7 @@ let make_pat_notation loc ntn l =
then expand_curly_brackets (fun n l -> CPatNotation (loc,n,l)) ntn l
else match ntn,l with
(* Special case to avoid writing "- 3" for e.g. (Zopp 3) *)
- | "- _", [CPatNumeral(_,Bignat.POS p)] ->
+ | "- _", [CPatNumeral(_,p)] when Bigint.is_strictly_pos p ->
CPatNotation (loc,ntn,[CPatNotation(loc,"( _ )",l)])
| _ -> CPatNotation (loc,ntn,l)