diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-04-09 17:20:46 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-04-09 17:20:46 (GMT) |
commit | 94ef3e4c1da1bb5bc2e59cbf922855e2b7aaafa3 (patch) | |
tree | d32600246a3821f4e55eb1c3ed08cc65fb6081ff /Modules | |
parent | b547d395ab72d9e9747f71b0f038ad5ac9e30e01 (diff) | |
download | cpython-94ef3e4c1da1bb5bc2e59cbf922855e2b7aaafa3.zip cpython-94ef3e4c1da1bb5bc2e59cbf922855e2b7aaafa3.tar.gz cpython-94ef3e4c1da1bb5bc2e59cbf922855e2b7aaafa3.tar.bz2 |
Use the MPD() accessor macro.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_decimal/_decimal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index c4580a8..91aac87 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -3745,9 +3745,9 @@ nm_dec_as_long(PyObject *dec) } static int -nm_nonzero(PyDecObject *v) +nm_nonzero(PyObject *v) { - return !mpd_iszero(v->dec); + return !mpd_iszero(MPD(v)); } static PyObject * |