Skip to content

Commit

Permalink
fix(runner): put back UnexpectedSignature error to ty mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Jan 6, 2021
1 parent db068ef commit 7a6feae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ impl Interpreter {
let value_ty = return_val.as_ref().map(|val| val.value_type());
let expected_ty = nested_func.signature().return_type();
if value_ty != expected_ty {
return Err(TrapKind::StackOverflow.into());
return Err(TrapKind::UnexpectedSignature.into());
}

if let Some(return_val) = return_val {
Expand Down

0 comments on commit 7a6feae

Please sign in to comment.