Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ static int lookup_pointer(
if (noInline)
n_frames = 1;
if (n_frames > 1) {
jl_frame_t *new_frames = (jl_frame_t*)calloc(sizeof(jl_frame_t), n_frames);
jl_frame_t *new_frames = (jl_frame_t*)calloc(n_frames, sizeof(jl_frame_t));
memcpy(&new_frames[n_frames - 1], *frames, sizeof(jl_frame_t));
free(*frames);
*frames = new_frames;
Expand Down Expand Up @@ -1277,7 +1277,7 @@ extern "C" JL_DLLEXPORT_CODEGEN int jl_getFunctionInfo_impl(jl_frame_t **frames_
// This function is not allowed to reference any TLS variables if noInline
// since it can be called from an unmanaged thread on OSX.

jl_frame_t *frames = (jl_frame_t*)calloc(sizeof(jl_frame_t), 1);
jl_frame_t *frames = (jl_frame_t*)calloc(1, sizeof(jl_frame_t));
frames[0].line = -1;
*frames_out = frames;

Expand Down