Skip to content

Commit

Permalink
Pass correct object; fixes 03-closures.t.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 1, 2013
1 parent e79e004 commit 709dce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/6model/serialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ static void serialize_context(MVMThreadContext *tc, MVMSerializationWriter *writ
MVMLexicalRegistry **lexnames = sf->body.lexical_names_list;

/* Locate the static code ref this context points to. */
MVMObject *static_code_ref = closure_to_static_code_ref(tc, ctx, 1);
MVMObject *static_code_ref = closure_to_static_code_ref(tc, frame->code_ref, 1);
MVMSerializationContext *static_code_sc = static_code_ref->header.sc;
if (OBJ_IS_NULL(static_code_sc))
MVM_exception_throw_adhoc(tc,
Expand Down

0 comments on commit 709dce3

Please sign in to comment.