reverted that bug
This commit is contained in:
parent
b9d0a199a3
commit
1bef6d6caa
1 changed files with 6 additions and 4 deletions
10
src/vm.rs
10
src/vm.rs
|
|
@ -273,8 +273,9 @@ impl Vm {
|
|||
args.insert(0, self.local_stack().pop()?);
|
||||
let return_value = self.execute(class.as_str(), signature, args)?;
|
||||
let borrow = return_value.borrow();
|
||||
if let &Void = borrow.deref() {
|
||||
self.local_stack().push(return_value.clone());
|
||||
match borrow.deref() {
|
||||
&Void => {}
|
||||
_ => { self.local_stack().push(return_value.clone()); }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -293,8 +294,9 @@ impl Vm {
|
|||
args.insert(0, self.local_stack().pop()?);
|
||||
let return_value = self.execute(class.as_str(), signature, args)?;
|
||||
let borrow = return_value.borrow();
|
||||
if let &Void = borrow.deref() {
|
||||
self.local_stack().push(return_value.clone());
|
||||
match borrow.deref() {
|
||||
&Void => {}
|
||||
_ => { self.local_stack().push(return_value.clone()); }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue