Skip to content

Commit

Permalink
more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 20, 2024
1 parent 798f9c7 commit b4e344b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ where
let value = if *v.value >= 10000000000000000_i64.into() {
format!("0x{}", v.value.to_str_radix(16))
} else if *v.value <= (-10000000000000000_i64).into() {
format!("-0x{}", (-*v.value.clone()).to_str_radix(16))
format!("-0x{}", (-(*v.value).clone()).to_str_radix(16))
} else {
v.value.to_string()
};
Expand Down

0 comments on commit b4e344b

Please sign in to comment.