Skip to content

Commit

Permalink
fix #4486
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Oct 12, 2013
1 parent ecdb0a5 commit 59256c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter.c
Expand Up @@ -147,7 +147,7 @@ static jl_value_t *eval(jl_value_t *e, jl_value_t **locals, size_t nl)
return jl_interpret_toplevel_thunk(li);
jl_array_t *formals = jl_lam_args((jl_expr_t*)li->ast);
size_t nreq = jl_array_len(formals);
if (!jl_is_rest_arg(jl_cellref(formals,nreq-1))) {
if (nreq==0 || !jl_is_rest_arg(jl_cellref(formals,nreq-1))) {
jl_value_t **ar;
JL_GC_PUSHARGS(ar, na*2);
for(int i=0; i < na*2; i++) {
Expand Down

1 comment on commit 59256c2

@Keno
Copy link
Member

@Keno Keno commented on 59256c2 Oct 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a unit test?

Please sign in to comment.