Skip to content

Commit 7dca4e3

Browse files
authored
gh-142440: Fix _decimal builds configured with EXTRA_FUNCTIONALITY (GH-142441)
There was a typo in _decimal.Context.apply().
1 parent 813fc7a commit 7dca4e3

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
@@ -6991,7 +6991,7 @@ _decimal_Context_apply_impl(PyObject *context, PyTypeObject *cls,
69916991
PyObject *x)
69926992
/*[clinic end generated code: output=f8a7142d47ad4ff3 input=388e66ca82733516]*/
69936993
{
6994-
return _decimal_Context__apply(context, v);
6994+
return _decimal_Context__apply(context, x);
69956995
}
69966996
#endif
69976997

0 commit comments

Comments
 (0)