We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d341dac commit 4c53701Copy full SHA for 4c53701
1 file changed
pythoncapi_compat.h
@@ -2092,7 +2092,7 @@ PyConfig_Get(const char *name)
2092
2093
const PyConfigSpec *spec;
2094
int found = 0;
2095
- for (size_t i=0; i < Py_ARRAY_LENGTH(config_spec); i++) {
+ for (size_t i=0; i < sizeof(config_spec) / sizeof(config_spec[0]); i++) {
2096
spec = &config_spec[i];
2097
if (strcmp(spec->name, name) == 0) {
2098
found = 1;
0 commit comments