Skip to content

Commit c3dc1a0

Browse files
committed
remove unnecessary guard for constants
1 parent 0add4e3 commit c3dc1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/core/js_exp_make.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ let unchecked_int32_mul ?comment e1 e2 : J.expression =
16081608
let int32_pow ?comment (e1 : t) (e2 : t) : J.expression =
16091609
match (e1.expression_desc, e2.expression_desc) with
16101610
| Number (Int {i = i1}), Number (Int {i = i2}) ->
1611-
to_int32 (int ?comment (Ext_int.int32_pow i1 i2))
1611+
int ?comment (Ext_int.int32_pow i1 i2)
16121612
| _ -> to_int32 (float_pow ?comment e1 e2)
16131613

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

0 commit comments

Comments
 (0)