gh-121404: typo fix in compile.c: MATADATA -> METADATA (#125101)

This commit is contained in:
Mikhail Efimov 2024-10-08 15:18:28 +03:00 committed by GitHub
parent 9047146e54
commit 9a35d05338
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -1534,7 +1534,7 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
_PyCompile_CodeUnitMetadata *umd = &c->u->u_metadata;
#define SET_MATADATA_INT(key, value) do { \
#define SET_METADATA_INT(key, value) do { \
PyObject *v = PyLong_FromLong((long)value); \
if (v == NULL) goto finally; \
int res = PyDict_SetItemString(metadata, key, v); \
@ -1542,10 +1542,10 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
if (res < 0) goto finally; \
} while (0);
SET_MATADATA_INT("argcount", umd->u_argcount);
SET_MATADATA_INT("posonlyargcount", umd->u_posonlyargcount);
SET_MATADATA_INT("kwonlyargcount", umd->u_kwonlyargcount);
#undef SET_MATADATA_INT
SET_METADATA_INT("argcount", umd->u_argcount);
SET_METADATA_INT("posonlyargcount", umd->u_posonlyargcount);
SET_METADATA_INT("kwonlyargcount", umd->u_kwonlyargcount);
#undef SET_METADATA_INT
int addNone = mod->kind != Expression_kind;
if (_PyCodegen_AddReturnAtEnd(c, addNone) < 0) {