Skip to content

Commit 6ba686d

Browse files
gh-96678: Avoid undefined behaviour in test (#96672)
1 parent 830a20e commit 6ba686d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Programs/_testembed.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ static int test_init_is_python_build(void)
15811581
config._is_python_build = INT_MAX;
15821582
env = getenv("NEGATIVE_ISPYTHONBUILD");
15831583
if (env && strcmp(env, "0") != 0) {
1584-
config._is_python_build++;
1584+
config._is_python_build = INT_MIN;
15851585
}
15861586
init_from_config_clear(&config);
15871587
Py_Finalize();

0 commit comments

Comments
 (0)