diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index 8cf63f5..4d28846 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -2092,7 +2092,7 @@ PyConfig_Get(const char *name) const PyConfigSpec *spec; int found = 0; - 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++) { spec = &config_spec[i]; if (strcmp(spec->name, name) == 0) { found = 1;
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: