Skip to content

Commit

Permalink
remove unnecessary guard for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Nov 9, 2024
1 parent 503602b commit 2ac5b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/core/js_exp_make.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ let unchecked_int32_mul ?comment e1 e2 : J.expression =
let int32_pow ?comment (e1 : t) (e2 : t) : J.expression =
match (e1.expression_desc, e2.expression_desc) with
| Number (Int {i = i1}), Number (Int {i = i2}) ->
to_int32 (int ?comment (Ext_int.int32_pow i1 i2))
int ?comment (Ext_int.int32_pow i1 i2)
| _ -> to_int32 (float_pow ?comment e1 e2)

let rec int32_bxor ?comment (e1 : t) (e2 : t) : J.expression =
Expand Down

0 comments on commit 2ac5b3a

Please sign in to comment.