@@ -2171,16 +2171,16 @@ dec_from_long(PyTypeObject *type, PyObject *v,
2171
2171
}
2172
2172
2173
2173
if (len == 1 ) {
2174
- _dec_settriple (dec , sign , * l -> ob_digit , 0 );
2174
+ _dec_settriple (dec , sign , * l -> long_value . ob_digit , 0 );
2175
2175
mpd_qfinalize (MPD (dec ), ctx , status );
2176
2176
return dec ;
2177
2177
}
2178
2178
2179
2179
#if PYLONG_BITS_IN_DIGIT == 30
2180
- mpd_qimport_u32 (MPD (dec ), l -> ob_digit , len , sign , PyLong_BASE ,
2180
+ mpd_qimport_u32 (MPD (dec ), l -> long_value . ob_digit , len , sign , PyLong_BASE ,
2181
2181
ctx , status );
2182
2182
#elif PYLONG_BITS_IN_DIGIT == 15
2183
- mpd_qimport_u16 (MPD (dec ), l -> ob_digit , len , sign , PyLong_BASE ,
2183
+ mpd_qimport_u16 (MPD (dec ), l -> long_value . ob_digit , len , sign , PyLong_BASE ,
2184
2184
ctx , status );
2185
2185
#else
2186
2186
#error "PYLONG_BITS_IN_DIGIT should be 15 or 30"
@@ -3543,11 +3543,11 @@ dec_as_long(PyObject *dec, PyObject *context, int round)
3543
3543
return NULL ;
3544
3544
}
3545
3545
3546
- memcpy (pylong -> ob_digit , ob_digit , n * sizeof (digit ));
3546
+ memcpy (pylong -> long_value . ob_digit , ob_digit , n * sizeof (digit ));
3547
3547
mpd_free (ob_digit );
3548
3548
3549
3549
i = n ;
3550
- while ((i > 0 ) && (pylong -> ob_digit [i - 1 ] == 0 )) {
3550
+ while ((i > 0 ) && (pylong -> long_value . ob_digit [i - 1 ] == 0 )) {
3551
3551
i -- ;
3552
3552
}
3553
3553
0 commit comments