diff options
| author | letouzey | 2013-02-19 20:27:58 +0000 |
|---|---|---|
| committer | letouzey | 2013-02-19 20:27:58 +0000 |
| commit | 86fcf8805aa5782314886e0f7e005f7179f60801 (patch) | |
| tree | c7fd5c54b9768db32489f2bd159a288ae8ca763f /pretyping | |
| parent | 248728628f5da946f96c22ba0a0e7e9b33019382 (diff) | |
avoid (Int.equal (cmp ...) 0) when a boolean equality exists
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16222 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping')
| -rw-r--r-- | pretyping/termops.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/termops.ml b/pretyping/termops.ml index 825a6adb74..5056c31230 100644 --- a/pretyping/termops.ml +++ b/pretyping/termops.ml @@ -221,7 +221,7 @@ let lookup_rel_id id sign = | [] -> raise Not_found | (Anonymous, _, _) :: l -> lookrec (n + 1) l | (Name id', b, t) :: l -> - if Int.equal (Names.Id.compare id' id) 0 then (n, b, t) else lookrec (n + 1) l + if Names.Id.equal id' id then (n, b, t) else lookrec (n + 1) l in lookrec 1 sign |
