Skip to content

Commit 54dd5c7

Browse files
committed
snapshot
1 parent afc8f8f commit 54dd5c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10848,11 +10848,11 @@ let rec find_constr tag num_const num_nonconst = function
1084810848
[] ->
1084910849
raise Constr_not_found
1085010850
| {cd_args = Cstr_tuple []; _} as c :: rem ->
10851-
if tag = Cstr_constant num_const
10851+
if Types.equal_tag tag (Cstr_constant num_const)
1085210852
then c
1085310853
else find_constr tag (num_const + 1) num_nonconst rem
1085410854
| c :: rem ->
10855-
if tag = Cstr_block num_nonconst || tag = Cstr_unboxed
10855+
if Types.equal_tag tag (Cstr_block num_nonconst) || tag = Cstr_unboxed
1085610856
then c
1085710857
else find_constr tag num_const (num_nonconst + 1) rem
1085810858

lib/4.06.1/unstable/js_refmt_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10848,11 +10848,11 @@ let rec find_constr tag num_const num_nonconst = function
1084810848
[] ->
1084910849
raise Constr_not_found
1085010850
| {cd_args = Cstr_tuple []; _} as c :: rem ->
10851-
if tag = Cstr_constant num_const
10851+
if Types.equal_tag tag (Cstr_constant num_const)
1085210852
then c
1085310853
else find_constr tag (num_const + 1) num_nonconst rem
1085410854
| c :: rem ->
10855-
if tag = Cstr_block num_nonconst || tag = Cstr_unboxed
10855+
if Types.equal_tag tag (Cstr_block num_nonconst) || tag = Cstr_unboxed
1085610856
then c
1085710857
else find_constr tag num_const (num_nonconst + 1) rem
1085810858

lib/4.06.1/whole_compiler.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298808,11 +298808,11 @@ let rec find_constr tag num_const num_nonconst = function
298808298808
[] ->
298809298809
raise Constr_not_found
298810298810
| {cd_args = Cstr_tuple []; _} as c :: rem ->
298811-
if tag = Cstr_constant num_const
298811+
if Types.equal_tag tag (Cstr_constant num_const)
298812298812
then c
298813298813
else find_constr tag (num_const + 1) num_nonconst rem
298814298814
| c :: rem ->
298815-
if tag = Cstr_block num_nonconst || tag = Cstr_unboxed
298815+
if Types.equal_tag tag (Cstr_block num_nonconst) || tag = Cstr_unboxed
298816298816
then c
298817298817
else find_constr tag num_const (num_nonconst + 1) rem
298818298818

0 commit comments

Comments
 (0)