Skip to content

Commit 5d987e8

Browse files
fix warnings
1 parent fb56baa commit 5d987e8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Include/internal/pycore_pylifecycle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ PyAPI_FUNC(int) _PyInterpreterConfig_UpdateFromDict(
129129
PyInterpreterConfig *,
130130
PyObject *);
131131

132-
extern void _PyInterpreter_SetJitWithEnvVar(PyConfig *config, PyInterpreterState *interp);
132+
extern void _PyInterpreter_SetJitWithEnvVar(const PyConfig *config, PyInterpreterState *interp);
133133

134134
#ifdef __cplusplus
135135
}

Python/pylifecycle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ run_presite(PyThreadState *tstate)
11951195
#endif
11961196

11971197
void
1198-
_PyInterpreter_SetJitWithEnvVar(PyConfig *config, PyInterpreterState *interp)
1198+
_PyInterpreter_SetJitWithEnvVar(const PyConfig *config, PyInterpreterState *interp)
11991199
{
12001200
int enabled = 1;
12011201
#if _Py_TIER2 & 2
@@ -1218,7 +1218,7 @@ _PyInterpreter_SetJitWithEnvVar(PyConfig *config, PyInterpreterState *interp)
12181218
} else
12191219
#endif
12201220
{
1221-
FT_ATOMIC_STORE_CHAR_RELAXED(interp->jit, 1);
1221+
FT_ATOMIC_STORE_UINT8(interp->jit, 1);
12221222
}
12231223
}
12241224
}

0 commit comments

Comments
 (0)