Skip to content

Commit 906cf7e

Browse files
committed
Test another fix
1 parent 93b3db5 commit 906cf7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/lib-rt/pythoncapi_compat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ PyConfig_Get(const char *name)
20922092

20932093
const PyConfigSpec *spec;
20942094
int found = 0;
2095-
for (size_t i=0; i < Py_ARRAY_LENGTH(config_spec); i++) {
2095+
for (size_t i=0; i < sizeof(config_spec) / sizeof(config_spec[0]); i++) {
20962096
spec = &config_spec[i];
20972097
if (strcmp(spec->name, name) == 0) {
20982098
found = 1;

0 commit comments

Comments
 (0)