aboutsummaryrefslogtreecommitdiff
path: root/kernel/constr.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/constr.ml')
-rw-r--r--kernel/constr.ml9
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/constr.ml b/kernel/constr.ml
index 84eacb196c..ade03fdf93 100644
--- a/kernel/constr.ml
+++ b/kernel/constr.ml
@@ -1,7 +1,7 @@
(************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
-(* v * INRIA, CNRS and contributors - Copyright 1999-2019 *)
-(* <O___,, * (see CREDITS file for the list of authors) *)
+(* v * Copyright INRIA, CNRS and contributors *)
+(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
@@ -1297,7 +1297,8 @@ let hashcons (sh_sort,sh_ci,sh_construct,sh_ind,sh_con,sh_na,sh_id) =
fun t -> fst (sh_rec t)
(* Exported hashing fonction on constr, used mainly in plugins.
- Appears to have slight differences from [snd (hash_term t)] above ? *)
+ Slight differences from [snd (hash_term t)] above: it ignores binders
+ and doesn't do [land 0x3FFFFFFF]. *)
let rec hash t =
match kind t with
@@ -1336,7 +1337,7 @@ let rec hash t =
| Float f -> combinesmall 19 (Float64.hash f)
and hash_term_array t =
- Array.fold_left (fun acc t -> combine (hash t) acc) 0 t
+ Array.fold_left (fun acc t -> combine acc (hash t)) 0 t
module CaseinfoHash =
struct