Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
INotWant committed Jan 12, 2021
1 parent c9476bf commit cfee900
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/lisp/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ element_t apply(void *procedure, void *arguments) {
void *exps = procedure_body(procedure);
/* 更新 root 表中的 env 指针 -- for GC of pair */
update_env_point(new_env);
element_t ret_ele = eval_sequence(exps, new_env);
/* 恢复 env 指针 */
update_env_point(old_env);
return ret_ele;
return eval_sequence(exps, new_env);
} else
eval_error_handler(UNKNOWN_PROC_TYPE);
}

0 comments on commit cfee900

Please sign in to comment.