File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -309,17 +309,17 @@ let rec caml_equal (a : Obj.t) (b : Obj.t) : bool =
309
309
let len_a = Obj. size a in
310
310
let len_b = Obj. size b in
311
311
if len_a = len_b then
312
- if O. isArray(a)
313
- then aux_equal_length a b 0 len_a
312
+ if O. isArray a
313
+ then aux_equal_length ( Obj. magic a : Obj.t array ) ( Obj. magic b : Obj.t array ) 0 len_a
314
314
else if [% raw{| a instanceof Date && b instanceof Date | }] then
315
315
not (Js. unsafe_gt a b || Js. unsafe_lt a b)
316
316
else aux_obj_equal a b
317
317
else false
318
- and aux_equal_length (a : Obj.t ) (b : Obj.t ) i same_length =
318
+ and aux_equal_length (a : Obj.t array ) (b : Obj.t array ) i same_length =
319
319
if i = same_length then
320
320
true
321
321
else
322
- caml_equal (Obj. field a i) (Obj. field b i)
322
+ caml_equal (Caml_array_extern. unsafe_get a i) (Caml_array_extern. unsafe_get b i)
323
323
&& aux_equal_length a b (i + 1 ) same_length
324
324
and aux_obj_equal (a : Obj.t ) (b : Obj.t ) =
325
325
let result = ref true in
You can’t perform that action at this time.
0 commit comments