diff options
Diffstat (limited to 'lib/cArray.ml')
| -rw-r--r-- | lib/cArray.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cArray.ml b/lib/cArray.ml index 4615ad0388..a5e38534f3 100644 --- a/lib/cArray.ml +++ b/lib/cArray.ml @@ -102,7 +102,9 @@ let compare item_cmp v1 v2 = cmp (Array.length v1 - 1) let equal cmp t1 t2 = - Array.length t1 = Array.length t2 && + if t1 == t2 then true else + if not (Array.length t1 = Array.length t2) then false + else let rec aux i = (i = Array.length t1) || (cmp t1.(i) t2.(i) && aux (i + 1)) in aux 0 |
