Skip to content

Commit 3f75fbf

Browse files
committed
Explicit cast to int64_t
1 parent db1cc42 commit 3f75fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmp_stack.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static PY_STACK_FRAME_T * _write_python_stack_entry(PY_STACK_FRAME_T * frame, vo
9393

9494
// NOTE: the profiling overhead can be reduced by storing co_lnotab in the dump and
9595
// moving this computation to the reader instead of doing it here.
96-
result[*depth] = (void*) PyFrame_GetLineNumber(frame);
96+
result[*depth] = (void*) (int64_t) PyFrame_GetLineNumber(frame);
9797
*depth = *depth + 1;
9898
}
9999
result[*depth] = (void*)CODE_ADDR_TO_UID(FRAME_CODE(frame));

0 commit comments

Comments
 (0)