aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.rs b/src/vm.rs
index e001ebc..2859d83 100644
--- a/src/vm.rs
+++ b/src/vm.rs
@@ -656,7 +656,7 @@ impl VM {
let ret = inner.ret();
if Type::from(&a) != *ret {
- error!(self, ErrorKind::TypeMismatch(a.into(), ret.clone()),
+ error!(self, ErrorKind::TypeMismatch(ret.clone(), a.into()),
"Value does not match return type.");
}
}