Skip to content

Commit 551f8f2

Browse files
Avoid undefined behaviour in test
1 parent 4e4bfff commit 551f8f2

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)