gh-142440: Fix _decimal builds configured with EXTRA_FUNCTIONALITY (GH-142441)

There was a typo in _decimal.Context.apply().
This commit is contained in:
AZero13 2026-01-19 07:19:20 -05:00 committed by GitHub
parent 813fc7a291
commit 7dca4e3af1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
Fix _decimal builds configured with EXTRA_FUNCTIONALITY by correcting the
Context.apply wrapper to pass the right argument.

View File

@ -6991,7 +6991,7 @@ _decimal_Context_apply_impl(PyObject *context, PyTypeObject *cls,
PyObject *x)
/*[clinic end generated code: output=f8a7142d47ad4ff3 input=388e66ca82733516]*/
{
return _decimal_Context__apply(context, v);
return _decimal_Context__apply(context, x);
}
#endif