Fix bug in right-shifts.

This commit is contained in:
Stephen Chung
2020-08-23 18:04:19 +08:00
parent a72f797da1
commit 3902e49a7d
2 changed files with 4 additions and 4 deletions

View File

@@ -1280,7 +1280,7 @@ pub fn run_builtin_op_assignment(
"/=" => return Ok(Some(*x /= y)),
"%=" => return Ok(Some(*x %= y)),
"~=" => return Ok(Some(*x = x.pow(y as u32))),
">>=" => return Ok(Some(*x = *x << y)),
">>=" => return Ok(Some(*x = *x >> y)),
"<<=" => return Ok(Some(*x = *x << y)),
_ => (),
}