File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4433,12 +4433,11 @@ dec_conjugate(PyObject *self, PyObject *Py_UNUSED(dummy))
4433
4433
return Py_NewRef (self );
4434
4434
}
4435
4435
4436
- static PyObject *
4437
- dec_mpd_radix ( PyObject * self , PyObject * Py_UNUSED ( dummy ) )
4436
+ static inline PyObject *
4437
+ _dec_mpd_radix ( decimal_state * state )
4438
4438
{
4439
4439
PyObject * result ;
4440
4440
4441
- decimal_state * state = get_module_state_by_def (Py_TYPE (self ));
4442
4441
result = dec_alloc (state );
4443
4442
if (result == NULL ) {
4444
4443
return NULL ;
@@ -4448,6 +4447,13 @@ dec_mpd_radix(PyObject *self, PyObject *Py_UNUSED(dummy))
4448
4447
return result ;
4449
4448
}
4450
4449
4450
+ static PyObject *
4451
+ dec_mpd_radix (PyObject * self , PyObject * Py_UNUSED (dummy ))
4452
+ {
4453
+ decimal_state * state = get_module_state_by_def (Py_TYPE (self ));
4454
+ return _dec_mpd_radix (state );
4455
+ }
4456
+
4451
4457
static PyObject *
4452
4458
dec_mpd_qcopy_abs (PyObject * self , PyObject * Py_UNUSED (dummy ))
4453
4459
{
@@ -5403,7 +5409,8 @@ DecCtx_TernaryFunc(mpd_qfma)
5403
5409
static PyObject *
5404
5410
ctx_mpd_radix (PyObject * context , PyObject * dummy )
5405
5411
{
5406
- return dec_mpd_radix (context , dummy );
5412
+ decimal_state * state = get_module_state_from_ctx (context );
5413
+ return _dec_mpd_radix (state );
5407
5414
}
5408
5415
5409
5416
/* Boolean functions: single decimal argument */
You can’t perform that action at this time.
0 commit comments