Skip to content

Commit 21cbc4a

Browse files
committed
gh-142440: apply context to x, not v, in _decimal_Context_apply_impl
V is not even defined here.
1 parent 726e8e8 commit 21cbc4a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix _decimal builds configured with EXTRA_FUNCTIONALITY by correcting the
2+
Context.apply wrapper to pass the right argument.

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6990,7 +6990,7 @@ _decimal_Context_apply_impl(PyObject *context, PyTypeObject *cls,
69906990
PyObject *x)
69916991
/*[clinic end generated code: output=f8a7142d47ad4ff3 input=388e66ca82733516]*/
69926992
{
6993-
return _decimal_Context__apply(context, v);
6993+
return _decimal_Context__apply(context, x);
69946994
}
69956995
#endif
69966996

0 commit comments

Comments
 (0)