Skip to content

Commit 4f5f3e7

Browse files
committed
Avoid implicit cast
1 parent 42677ab commit 4f5f3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ uop_buffer_last(_PyJitUopBuffer *trace)
6161
static inline int
6262
uop_buffer_length(_PyJitUopBuffer *trace)
6363
{
64-
return trace->next - trace->start;
64+
return (int)(trace->next - trace->start);
6565
}
6666

6767
static inline int
6868
uop_buffer_remaining_space(_PyJitUopBuffer *trace)
6969
{
70-
return trace->end - trace->next;
70+
return (int)(trace->end - trace->next);
7171
}
7272

7373
typedef struct _PyJitTracerInitialState {

0 commit comments

Comments
 (0)