From 551f8f2ceb30abf85e9584dea13cbcc19e7fb18c Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Thu, 8 Sep 2022 13:48:04 +0800 Subject: [PATCH] Avoid undefined behaviour in test --- Programs/_testembed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Programs/_testembed.c b/Programs/_testembed.c index f84445690eb8f6b..a2a2ff40b2774b5 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -1581,7 +1581,7 @@ static int test_init_is_python_build(void) config._is_python_build = INT_MAX; env = getenv("NEGATIVE_ISPYTHONBUILD"); if (env && strcmp(env, "0") != 0) { - config._is_python_build++; + config._is_python_build = INT_MIN; } init_from_config_clear(&config); Py_Finalize();