Fix bitwise shift functions type error in the second argument
This commit is contained in:
@@ -676,6 +676,10 @@ impl MachineState {
|
|||||||
MachineError::type_error(self.heap.h(), ValidType::Integer, n2),
|
MachineError::type_error(self.heap.h(), ValidType::Integer, n2),
|
||||||
stub,
|
stub,
|
||||||
)),
|
)),
|
||||||
|
(Number::Fixnum(_), n2) => Err(self.error_form(
|
||||||
|
MachineError::type_error(self.heap.h(), ValidType::Integer, n2),
|
||||||
|
stub,
|
||||||
|
)),
|
||||||
(n1, _) => Err(self.error_form(
|
(n1, _) => Err(self.error_form(
|
||||||
MachineError::type_error(self.heap.h(), ValidType::Integer, n1),
|
MachineError::type_error(self.heap.h(), ValidType::Integer, n1),
|
||||||
stub,
|
stub,
|
||||||
@@ -716,6 +720,10 @@ impl MachineState {
|
|||||||
MachineError::type_error(self.heap.h(), ValidType::Integer, n2),
|
MachineError::type_error(self.heap.h(), ValidType::Integer, n2),
|
||||||
stub,
|
stub,
|
||||||
)),
|
)),
|
||||||
|
(Number::Fixnum(_), n2) => Err(self.error_form(
|
||||||
|
MachineError::type_error(self.heap.h(), ValidType::Integer, n2),
|
||||||
|
stub,
|
||||||
|
)),
|
||||||
(n1, _) => Err(self.error_form(
|
(n1, _) => Err(self.error_form(
|
||||||
MachineError::type_error(self.heap.h(), ValidType::Integer, n1),
|
MachineError::type_error(self.heap.h(), ValidType::Integer, n1),
|
||||||
stub,
|
stub,
|
||||||
|
|||||||
Reference in New Issue
Block a user