Skip to content

Commit

Permalink
fix: enum
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Sep 7, 2023
1 parent 2cf0b2e commit c4ad213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_typescript/src/ts_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl<'a> EnumValueComputer<'a> {
op!(">>>") => (left.trunc() as u32).wrapping_shr(right.trunc() as u32) as f64,
op!("|") => ((left.trunc() as i32) | (right.trunc() as i32)) as f64,
op!("&") => ((left.trunc() as i32) & (right.trunc() as i32)) as f64,
op!("^") => ((left.trunc() as i32) | (right.trunc() as i32)) as f64,
op!("^") => ((left.trunc() as i32) ^ (right.trunc() as i32)) as f64,
_ => unreachable!(),
};

Expand Down

0 comments on commit c4ad213

Please sign in to comment.