From 27c7cc4af7f59ad9a95eac58f30be09b7c64e489 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 26 May 2020 23:05:21 +0800 Subject: [PATCH] Fix syntax error. --- src/engine.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index 54907c0b..f4f85b9d 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -2150,9 +2150,9 @@ fn run_builtin_op_assignment( "*" => return Ok(Some(*x *= y)), "/" => return Ok(Some(*x /= y)), "%" => return Ok(Some(*x %= y)), - "~" => return Ok(Some(*x = pow_i_i_u(x, y))), - ">>" => return Ok(Some(*x = shr_u(x, y))), - "<<" => return Ok(Some(*x = shl_u(x, y))), + "~" => return Ok(Some(*x = pow_i_i_u(*x, y)?)), + ">>" => return Ok(Some(*x = shr_u(*x, y)?)), + "<<" => return Ok(Some(*x = shl_u(*x, y)?)), _ => (), }