Skip to content

Commit

Permalink
Fix JuliaLang#20580, embedding example crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Feb 25, 2017
1 parent 3bdc8b3 commit 61e0c23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rtutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,10 @@ JL_DLLEXPORT void jl_show(jl_value_t *stream, jl_value_t *v)
return;
}
jl_value_t *args[3] = {jl_show_gf,stream,v};
size_t last_age = jl_get_ptls_states()->world_age;
jl_get_ptls_states()->world_age = jl_get_world_counter();
jl_apply(args, 3);
jl_get_ptls_states()->world_age = last_age;
}
}

Expand Down

0 comments on commit 61e0c23

Please sign in to comment.