Skip to content

Commit

Permalink
Fix C compiler warning in jl_get_safe_restore() (JuliaLang#36818)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jul 29, 2020
1 parent 02d5cb3 commit cc2f9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ JL_DLLEXPORT jl_value_t *jl_get_current_task(void)
JL_DLLEXPORT jl_jmp_buf *jl_get_safe_restore(void)
{
jl_ptls_t ptls = jl_get_ptls_states();
return (jl_value_t*)ptls->safe_restore;
return ptls->safe_restore;
}

JL_DLLEXPORT void jl_set_safe_restore(jl_jmp_buf *sr)
Expand Down

0 comments on commit cc2f9b0

Please sign in to comment.