File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -178,11 +178,15 @@ typedef struct {
178178 mpd_uint_t data [_Py_DEC_MINALLOC ];
179179} PyDecObject ;
180180
181+ #define _PyDecObject_CAST (op ) ((PyDecObject *)(op))
182+
181183typedef struct {
182184 PyObject_HEAD
183185 uint32_t * flags ;
184186} PyDecSignalDictObject ;
185187
188+ #define _PyDecSignalDictObject_CAST (op ) ((PyDecSignalDictObject *)(op))
189+
186190typedef struct PyDecContextObject {
187191 PyObject_HEAD
188192 mpd_context_t ctx ;
@@ -193,12 +197,16 @@ typedef struct PyDecContextObject {
193197 decimal_state * modstate ;
194198} PyDecContextObject ;
195199
200+ #define _PyDecContextObject_CAST (op ) ((PyDecContextObject *)(op))
201+
196202typedef struct {
197203 PyObject_HEAD
198204 PyObject * local ;
199205 PyObject * global ;
200206} PyDecContextManagerObject ;
201207
208+ #define _PyDecContextManagerObject_CAST (op ) ((PyDecContextManagerObject *)(op))
209+
202210#undef MPD
203211#undef CTX
204212#define PyDec_CheckExact (st , v ) Py_IS_TYPE(v, (st)->PyDec_Type)
You can’t perform that action at this time.
0 commit comments