From: Matthias Görgens Date: Tue, 13 Sep 2022 12:15:11 +0000 (+0800) Subject: gh-96678: Avoid undefined behaviour in test (#96672) X-Git-Tag: v3.12.0a1~422 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ba686d97fd6d2a2169696c6629f7de9482f52db;p=thirdparty%2FPython%2Fcpython.git gh-96678: Avoid undefined behaviour in test (#96672) --- diff --git a/Programs/_testembed.c b/Programs/_testembed.c index f84445690eb8..a2a2ff40b277 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();